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