Lines Matching defs:fep

6208 	ipsec_fragcache_entry_t *fep;
6215 fep = (frag->itpf_ptr)[i];
6216 while (fep != NULL) {
6217 /* Returned fep is next in chain or NULL */
6218 fep = fragcache_delentry(i, fep, frag, ipss);
6267 ipsec_fragcache_entry_t *fep;
6365 for (fep = (frag->itpf_ptr)[i]; fep; fep = fep->itpfe_next) {
6368 if ((fep->itpfe_id == iph->ipha_ident) &&
6369 (fep->itpfe_src == iph->ipha_src) &&
6370 (fep->itpfe_dst == iph->ipha_dst) &&
6371 (fep->itpfe_proto == iph->ipha_protocol))
6375 ASSERT(fep != NULL);
6376 if ((fep->itpfe_id == fraghdr->ip6f_ident) &&
6377 IN6_ARE_ADDR_EQUAL(&fep->itpfe_src6,
6379 IN6_ARE_ADDR_EQUAL(&fep->itpfe_dst6,
6380 &ip6h->ip6_dst) && (fep->itpfe_proto == v6_proto))
6410 if (fep != NULL)
6411 (void) fragcache_delentry(i, fep, frag, ipss);
6422 if (fep == NULL) {
6437 fep = frag->itpf_freelist;
6438 frag->itpf_freelist = fep->itpfe_next;
6441 bcopy((caddr_t)&iph->ipha_src, (caddr_t)&fep->itpfe_src,
6443 bcopy((caddr_t)&iph->ipha_dst, (caddr_t)&fep->itpfe_dst,
6445 fep->itpfe_id = iph->ipha_ident;
6446 fep->itpfe_proto = iph->ipha_protocol;
6447 i = IPSEC_FRAG_HASH_FUNC(fep->itpfe_id);
6450 (in6_addr_t *)&fep->itpfe_src6,
6453 (in6_addr_t *)&fep->itpfe_dst6,
6455 fep->itpfe_id = fraghdr->ip6f_ident;
6456 fep->itpfe_proto = v6_proto;
6457 i = IPSEC_FRAG_HASH_FUNC(fep->itpfe_id);
6460 fep->itpfe_exp = itpf_time + IPSEC_FRAG_TTL_MAX + 1;
6461 fep->itpfe_last = 0;
6462 fep->itpfe_fraglist = NULL;
6463 fep->itpfe_depth = 0;
6464 fep->itpfe_next = (frag->itpf_ptr)[i];
6465 (frag->itpf_ptr)[i] = fep;
6467 if (frag->itpf_expire_hint > fep->itpfe_exp)
6468 frag->itpf_expire_hint = fep->itpfe_exp;
6476 for (nmp = fep->itpfe_fraglist; nmp; nmp = nmp->b_next) {
6572 (void) fragcache_delentry(i, fep, frag, ipss);
6635 (void) fragcache_delentry(i, fep, frag,
6669 fep->itpfe_fraglist = mp;
6674 fep->itpfe_last = 1;
6677 if (++(fep->itpfe_depth) > IPSEC_MAX_FRAGS) {
6678 (void) fragcache_delentry(i, fep, frag, ipss);
6691 if (!fep->itpfe_last) {
6700 for (mp = fep->itpfe_fraglist; mp; mp = mp->b_next) {
6785 mp = fep->itpfe_fraglist;
6786 fep->itpfe_fraglist = NULL;
6787 (void) fragcache_delentry(i, fep, frag, ipss);
6828 ipsec_fragcache_entry_t *fep;
6841 fep = (frag->itpf_ptr)[i];
6842 while (fep) {
6843 if (fep->itpfe_exp < itpf_time) {
6845 fep = fragcache_delentry(i, fep, frag, ipss);
6847 if (fep->itpfe_exp < earlyexp) {
6848 earlyfep = fep;
6849 earlyexp = fep->itpfe_exp;
6852 fep = fep->itpfe_next;
6865 fragcache_delentry(int slot, ipsec_fragcache_entry_t *fep,
6869 ipsec_fragcache_entry_t *nextp = fep->itpfe_next;
6874 if (fep->itpfe_fraglist != NULL) {
6875 ip_drop_packet_chain(fep->itpfe_fraglist,
6876 ip_recv_attr_is_mblk(fep->itpfe_fraglist), NULL,
6880 fep->itpfe_fraglist = NULL;
6885 if (targp == fep) {
6889 fep->itpfe_next = frag->itpf_freelist;
6890 frag->itpf_freelist = fep;
6897 if (targp->itpfe_next == fep) {
6901 fep->itpfe_next = frag->itpf_freelist;
6902 frag->itpf_freelist = fep;