Lines Matching refs:rec
265 struct netflow_v9_record_ipv4_tcp *rec = &rg.rec.v4_tcp; in export9_add() local
267 rec->src_addr = fed->r.r_src.s_addr; in export9_add()
268 rec->dst_addr = fed->r.r_dst.s_addr; in export9_add()
269 rec->next_hop = fed->next_hop.s_addr; in export9_add()
270 rec->i_ifx = htons(fed->fle_i_ifx); in export9_add()
271 rec->o_ifx = htons(fed->fle_o_ifx); in export9_add()
272 rec->i_packets = htonl(fed->packets); in export9_add()
273 rec->i_octets = htonl(fed->bytes); in export9_add()
274 rec->o_packets = htonl(0); in export9_add()
275 rec->o_octets = htonl(0); in export9_add()
276 rec->first = htonl(MILLIUPTIME(fed->first)); in export9_add()
277 rec->last = htonl(MILLIUPTIME(fed->last)); in export9_add()
278 rec->s_port = fed->r.r_sport; in export9_add()
279 rec->d_port = fed->r.r_dport; in export9_add()
280 rec->flags = fed->tcp_flags; in export9_add()
281 rec->prot = fed->r.r_ip_p; in export9_add()
282 rec->tos = fed->r.r_tos; in export9_add()
283 rec->dst_mask = fed->dst_mask; in export9_add()
284 rec->src_mask = fed->src_mask; in export9_add()
287 rec->src_as = rec->dst_as = 0; in export9_add()
296 struct netflow_v9_record_ipv6_tcp *rec = &rg.rec.v6_tcp; in export9_add() local
298 rec->src_addr = fed6->r.src.r_src6; in export9_add()
299 rec->dst_addr = fed6->r.dst.r_dst6; in export9_add()
300 rec->next_hop = fed6->n.next_hop6; in export9_add()
301 rec->i_ifx = htons(fed6->fle_i_ifx); in export9_add()
302 rec->o_ifx = htons(fed6->fle_o_ifx); in export9_add()
303 rec->i_packets = htonl(fed6->packets); in export9_add()
304 rec->i_octets = htonl(fed6->bytes); in export9_add()
305 rec->o_packets = htonl(0); in export9_add()
306 rec->o_octets = htonl(0); in export9_add()
307 rec->first = htonl(MILLIUPTIME(fed6->first)); in export9_add()
308 rec->last = htonl(MILLIUPTIME(fed6->last)); in export9_add()
309 rec->s_port = fed6->r.r_sport; in export9_add()
310 rec->d_port = fed6->r.r_dport; in export9_add()
311 rec->flags = fed6->tcp_flags; in export9_add()
312 rec->prot = fed6->r.r_ip_p; in export9_add()
313 rec->tos = fed6->r.r_tos; in export9_add()
314 rec->dst_mask = fed6->dst_mask; in export9_add()
315 rec->src_mask = fed6->src_mask; in export9_add()
318 rec->src_as = rec->dst_as = 0; in export9_add()
350 if (m_append(m, len, (void *)&rg.rec) != 1) in export9_add()