Lines Matching defs:fep
6210 ipsec_fragcache_entry_t *fep;
6217 fep = (frag->itpf_ptr)[i];
6218 while (fep != NULL) {
6219 /* Returned fep is next in chain or NULL */
6220 fep = fragcache_delentry(i, fep, frag, ipss);
6269 ipsec_fragcache_entry_t *fep;
6367 for (fep = (frag->itpf_ptr)[i]; fep; fep = fep->itpfe_next) {
6370 if ((fep->itpfe_id == iph->ipha_ident) &&
6371 (fep->itpfe_src == iph->ipha_src) &&
6372 (fep->itpfe_dst == iph->ipha_dst) &&
6373 (fep->itpfe_proto == iph->ipha_protocol))
6377 ASSERT(fep != NULL);
6378 if ((fep->itpfe_id == fraghdr->ip6f_ident) &&
6379 IN6_ARE_ADDR_EQUAL(&fep->itpfe_src6,
6381 IN6_ARE_ADDR_EQUAL(&fep->itpfe_dst6,
6382 &ip6h->ip6_dst) && (fep->itpfe_proto == v6_proto))
6412 if (fep != NULL)
6413 (void) fragcache_delentry(i, fep, frag, ipss);
6424 if (fep == NULL) {
6439 fep = frag->itpf_freelist;
6440 frag->itpf_freelist = fep->itpfe_next;
6443 bcopy((caddr_t)&iph->ipha_src, (caddr_t)&fep->itpfe_src,
6445 bcopy((caddr_t)&iph->ipha_dst, (caddr_t)&fep->itpfe_dst,
6447 fep->itpfe_id = iph->ipha_ident;
6448 fep->itpfe_proto = iph->ipha_protocol;
6449 i = IPSEC_FRAG_HASH_FUNC(fep->itpfe_id);
6452 (in6_addr_t *)&fep->itpfe_src6,
6455 (in6_addr_t *)&fep->itpfe_dst6,
6457 fep->itpfe_id = fraghdr->ip6f_ident;
6458 fep->itpfe_proto = v6_proto;
6459 i = IPSEC_FRAG_HASH_FUNC(fep->itpfe_id);
6462 fep->itpfe_exp = itpf_time + IPSEC_FRAG_TTL_MAX + 1;
6463 fep->itpfe_last = 0;
6464 fep->itpfe_fraglist = NULL;
6465 fep->itpfe_depth = 0;
6466 fep->itpfe_next = (frag->itpf_ptr)[i];
6467 (frag->itpf_ptr)[i] = fep;
6469 if (frag->itpf_expire_hint > fep->itpfe_exp)
6470 frag->itpf_expire_hint = fep->itpfe_exp;
6478 for (nmp = fep->itpfe_fraglist; nmp; nmp = nmp->b_next) {
6574 (void) fragcache_delentry(i, fep, frag, ipss);
6637 (void) fragcache_delentry(i, fep, frag,
6671 fep->itpfe_fraglist = mp;
6676 fep->itpfe_last = 1;
6679 if (++(fep->itpfe_depth) > IPSEC_MAX_FRAGS) {
6680 (void) fragcache_delentry(i, fep, frag, ipss);
6693 if (!fep->itpfe_last) {
6702 for (mp = fep->itpfe_fraglist; mp; mp = mp->b_next) {
6787 mp = fep->itpfe_fraglist;
6788 fep->itpfe_fraglist = NULL;
6789 (void) fragcache_delentry(i, fep, frag, ipss);
6830 ipsec_fragcache_entry_t *fep;
6843 fep = (frag->itpf_ptr)[i];
6844 while (fep) {
6845 if (fep->itpfe_exp < itpf_time) {
6847 fep = fragcache_delentry(i, fep, frag, ipss);
6849 if (fep->itpfe_exp < earlyexp) {
6850 earlyfep = fep;
6851 earlyexp = fep->itpfe_exp;
6854 fep = fep->itpfe_next;
6867 fragcache_delentry(int slot, ipsec_fragcache_entry_t *fep,
6871 ipsec_fragcache_entry_t *nextp = fep->itpfe_next;
6876 if (fep->itpfe_fraglist != NULL) {
6877 ip_drop_packet_chain(fep->itpfe_fraglist,
6878 ip_recv_attr_is_mblk(fep->itpfe_fraglist), NULL,
6882 fep->itpfe_fraglist = NULL;
6887 if (targp == fep) {
6891 fep->itpfe_next = frag->itpf_freelist;
6892 frag->itpf_freelist = fep;
6899 if (targp->itpfe_next == fep) {
6903 fep->itpfe_next = frag->itpf_freelist;
6904 frag->itpf_freelist = fep;