Lines Matching refs:fle6

402 	struct flow6_entry *fle6;  in hash6_insert()  local
406 fle6 = uma_zalloc_arg(priv->zone6, priv, M_NOWAIT); in hash6_insert()
407 if (fle6 == NULL) { in hash6_insert()
417 fle6->f.version = IP6VERSION; in hash6_insert()
418 bcopy(r, &fle6->f.r, sizeof(struct flow6_rec)); in hash6_insert()
419 fle6->f.bytes = plen; in hash6_insert()
420 fle6->f.packets = 1; in hash6_insert()
421 fle6->f.tcp_flags = tcp_flags; in hash6_insert()
423 fle6->f.first = fle6->f.last = time_uptime; in hash6_insert()
433 rt = fib6_lookup_rt(r->fib, &fle6->f.r.dst.r_dst6, 0, NHR_NONE, &rnd); in hash6_insert()
441 fle6->f.fle_o_ifx = nh->nh_ifp->if_index; in hash6_insert()
443 fle6->f.n.next_hop6 = nh->gw6_sa.sin6_addr; in hash6_insert()
444 fle6->f.dst_mask = plen; in hash6_insert()
453 rt = fib6_lookup_rt(r->fib, &fle6->f.r.src.r_src6, 0, NHR_NONE, &rnd); in hash6_insert()
460 fle6->f.src_mask = plen; in hash6_insert()
465 TAILQ_INSERT_TAIL(&hsh6->head, (struct flow_entry *)fle6, fle_hash); in hash6_insert()
785 struct flow6_entry *fle6; in ng_netflow_flow6_add() local
849 fle6 = (struct flow6_entry *)fle; in ng_netflow_flow6_add()
850 if (bcmp(&r, &fle6->f.r, sizeof(struct flow6_rec)) == 0) in ng_netflow_flow6_add()
852 if ((INACTIVE(fle6) && SMALL(fle6)) || AGED(fle6)) { in ng_netflow_flow6_add()
861 fle6 = (struct flow6_entry *)fle; in ng_netflow_flow6_add()
863 fle6->f.bytes += plen; in ng_netflow_flow6_add()
864 fle6->f.packets ++; in ng_netflow_flow6_add()
865 fle6->f.tcp_flags |= tcp_flags; in ng_netflow_flow6_add()
866 fle6->f.last = time_uptime; in ng_netflow_flow6_add()
874 if (tcp_flags & TH_FIN || tcp_flags & TH_RST || AGED(fle6) || in ng_netflow_flow6_add()
875 (fle6->f.bytes >= (CNTR_MAX - IF_MAXMTU)) ) { in ng_netflow_flow6_add()
981 struct flow6_entry *fle6; in ng_netflow_flow_show() local
983 fle6 = (struct flow6_entry *)fle; in ng_netflow_flow_show()
984 bcopy(&fle6->f, data6 + resp->nentries, in ng_netflow_flow_show()
985 sizeof(fle6->f)); in ng_netflow_flow_show()
1139 struct flow6_entry *fle6; in ng_netflow_expire() local
1148 fle6 = (struct flow6_entry *)fle; in ng_netflow_expire()
1160 if (used <= (NBUCKETS*2) && !INACTIVE(fle6)) in ng_netflow_expire()
1163 if ((INACTIVE(fle6) && (SMALL(fle6) || in ng_netflow_expire()
1164 (used > (NBUCKETS*2)))) || AGED(fle6)) { in ng_netflow_expire()