Lines Matching refs:fle6

401 	struct flow6_entry *fle6;  in hash6_insert()  local
405 fle6 = uma_zalloc_arg(priv->zone6, priv, M_NOWAIT); in hash6_insert()
406 if (fle6 == NULL) { in hash6_insert()
416 fle6->f.version = IP6VERSION; in hash6_insert()
417 bcopy(r, &fle6->f.r, sizeof(struct flow6_rec)); in hash6_insert()
418 fle6->f.bytes = plen; in hash6_insert()
419 fle6->f.packets = 1; in hash6_insert()
420 fle6->f.tcp_flags = tcp_flags; in hash6_insert()
422 fle6->f.first = fle6->f.last = time_uptime; in hash6_insert()
432 rt = fib6_lookup_rt(r->fib, &fle6->f.r.dst.r_dst6, 0, NHR_NONE, &rnd); in hash6_insert()
440 fle6->f.fle_o_ifx = nh->nh_ifp->if_index; in hash6_insert()
442 fle6->f.n.next_hop6 = nh->gw6_sa.sin6_addr; in hash6_insert()
443 fle6->f.dst_mask = plen; in hash6_insert()
452 rt = fib6_lookup_rt(r->fib, &fle6->f.r.src.r_src6, 0, NHR_NONE, &rnd); in hash6_insert()
459 fle6->f.src_mask = plen; in hash6_insert()
464 TAILQ_INSERT_TAIL(&hsh6->head, (struct flow_entry *)fle6, fle_hash); in hash6_insert()
786 struct flow6_entry *fle6; in ng_netflow_flow6_add() local
850 fle6 = (struct flow6_entry *)fle; in ng_netflow_flow6_add()
851 if (bcmp(&r, &fle6->f.r, sizeof(struct flow6_rec)) == 0) in ng_netflow_flow6_add()
853 if ((INACTIVE(fle6) && SMALL(fle6)) || AGED(fle6)) { in ng_netflow_flow6_add()
862 fle6 = (struct flow6_entry *)fle; in ng_netflow_flow6_add()
864 fle6->f.bytes += plen; in ng_netflow_flow6_add()
865 fle6->f.packets ++; in ng_netflow_flow6_add()
866 fle6->f.tcp_flags |= tcp_flags; in ng_netflow_flow6_add()
867 fle6->f.last = time_uptime; in ng_netflow_flow6_add()
875 if (tcp_flags & TH_FIN || tcp_flags & TH_RST || AGED(fle6) || in ng_netflow_flow6_add()
876 (fle6->f.bytes >= (CNTR_MAX - IF_MAXMTU)) ) { in ng_netflow_flow6_add()
982 struct flow6_entry *fle6; in ng_netflow_flow_show() local
984 fle6 = (struct flow6_entry *)fle; in ng_netflow_flow_show()
985 bcopy(&fle6->f, data6 + resp->nentries, in ng_netflow_flow_show()
986 sizeof(fle6->f)); in ng_netflow_flow_show()
1140 struct flow6_entry *fle6; in ng_netflow_expire() local
1149 fle6 = (struct flow6_entry *)fle; in ng_netflow_expire()
1161 if (used <= (NBUCKETS*2) && !INACTIVE(fle6)) in ng_netflow_expire()
1164 if ((INACTIVE(fle6) && (SMALL(fle6) || in ng_netflow_expire()
1165 (used > (NBUCKETS*2)))) || AGED(fle6)) { in ng_netflow_expire()