Lines Matching refs:fle6

397 	struct flow6_entry *fle6;  in hash6_insert()  local
401 fle6 = uma_zalloc_arg(priv->zone6, priv, M_NOWAIT); in hash6_insert()
402 if (fle6 == NULL) { in hash6_insert()
412 fle6->f.version = IP6VERSION; in hash6_insert()
413 bcopy(r, &fle6->f.r, sizeof(struct flow6_rec)); in hash6_insert()
414 fle6->f.bytes = plen; in hash6_insert()
415 fle6->f.packets = 1; in hash6_insert()
416 fle6->f.tcp_flags = tcp_flags; in hash6_insert()
418 fle6->f.first = fle6->f.last = time_uptime; in hash6_insert()
428 rt = fib6_lookup_rt(r->fib, &fle6->f.r.dst.r_dst6, 0, NHR_NONE, &rnd); in hash6_insert()
436 fle6->f.fle_o_ifx = nh->nh_ifp->if_index; in hash6_insert()
438 fle6->f.n.next_hop6 = nh->gw6_sa.sin6_addr; in hash6_insert()
439 fle6->f.dst_mask = plen; in hash6_insert()
448 rt = fib6_lookup_rt(r->fib, &fle6->f.r.src.r_src6, 0, NHR_NONE, &rnd); in hash6_insert()
455 fle6->f.src_mask = plen; in hash6_insert()
460 TAILQ_INSERT_TAIL(&hsh6->head, (struct flow_entry *)fle6, fle_hash); in hash6_insert()
782 struct flow6_entry *fle6; in ng_netflow_flow6_add() local
846 fle6 = (struct flow6_entry *)fle; in ng_netflow_flow6_add()
847 if (bcmp(&r, &fle6->f.r, sizeof(struct flow6_rec)) == 0) in ng_netflow_flow6_add()
849 if ((INACTIVE(fle6) && SMALL(fle6)) || AGED(fle6)) { in ng_netflow_flow6_add()
858 fle6 = (struct flow6_entry *)fle; in ng_netflow_flow6_add()
860 fle6->f.bytes += plen; in ng_netflow_flow6_add()
861 fle6->f.packets ++; in ng_netflow_flow6_add()
862 fle6->f.tcp_flags |= tcp_flags; in ng_netflow_flow6_add()
863 fle6->f.last = time_uptime; in ng_netflow_flow6_add()
871 if (tcp_flags & TH_FIN || tcp_flags & TH_RST || AGED(fle6) || in ng_netflow_flow6_add()
872 (fle6->f.bytes >= (CNTR_MAX - IF_MAXMTU)) ) { in ng_netflow_flow6_add()
978 struct flow6_entry *fle6; in ng_netflow_flow_show() local
980 fle6 = (struct flow6_entry *)fle; in ng_netflow_flow_show()
981 bcopy(&fle6->f, data6 + resp->nentries, in ng_netflow_flow_show()
982 sizeof(fle6->f)); in ng_netflow_flow_show()
1136 struct flow6_entry *fle6; in ng_netflow_expire() local
1145 fle6 = (struct flow6_entry *)fle; in ng_netflow_expire()
1157 if (used <= (NBUCKETS*2) && !INACTIVE(fle6)) in ng_netflow_expire()
1160 if ((INACTIVE(fle6) && (SMALL(fle6) || in ng_netflow_expire()
1161 (used > (NBUCKETS*2)))) || AGED(fle6)) { in ng_netflow_expire()