Lines Matching refs:aftercut

660 		u_int16_t       aftercut;  in pf_reassemble()  local
662 aftercut = ip_len + off - FR_IP_OFF(frea); in pf_reassemble()
663 DPFPRINTF(("adjust overlap %d\n", aftercut)); in pf_reassemble()
664 if (aftercut < ntohs(frea->fr_ip->ip_len) - frea->fr_ip->ip_hl in pf_reassemble()
667 htons(ntohs(frea->fr_ip->ip_len) - aftercut); in pf_reassemble()
669 (aftercut >> 3)); in pf_reassemble()
670 m_adj(frea->fr_m, aftercut); in pf_reassemble()
962 int aftercut; in pf_fragcache() local
965 aftercut = fr_max - fra->fr_off; in pf_fragcache()
966 if (aftercut == 0) { in pf_fragcache()
972 } else if (aftercut > 0) { in pf_fragcache()
975 h->ip_id, aftercut, off, fr_max, fra->fr_off, in pf_fragcache()
978 fr_max -= aftercut; in pf_fragcache()
983 m_adj(m, -aftercut); in pf_fragcache()
994 ntohs(h->ip_len) - aftercut); in pf_fragcache()
995 h->ip_len = htons(ntohs(h->ip_len) - aftercut); in pf_fragcache()
1002 h->ip_id, -aftercut, off, fr_max, fra->fr_off, in pf_fragcache()
1292 u_int16_t aftercut; in pf_reassemble6() local
1294 aftercut = plen + off - FR_IP6_OFF(frea); in pf_reassemble6()
1295 DPFPRINTF(("adjust overlap %d\n", aftercut)); in pf_reassemble6()
1296 if (aftercut < FR_IP6_PLEN(frea) - frea->fr_ip6f_hlen) { in pf_reassemble6()
1298 aftercut); in pf_reassemble6()
1301 (aftercut >> 3)); in pf_reassemble6()
1302 m_adj(frea->fr_m, aftercut); in pf_reassemble6()
1662 int aftercut; in pf_frag6cache() local
1665 aftercut = fr_max - fra->fr_off; in pf_frag6cache()
1666 if (aftercut == 0) { in pf_frag6cache()
1673 } else if (aftercut > 0) { in pf_frag6cache()
1676 ntohl(fh->ip6f_ident), aftercut, off, fr_max, in pf_frag6cache()
1679 fr_max -= aftercut; in pf_frag6cache()
1684 m_adj(m, -aftercut); in pf_frag6cache()
1695 ntohs(h->ip6_plen) - aftercut); in pf_frag6cache()
1697 htons(ntohs(h->ip6_plen) - aftercut); in pf_frag6cache()
1704 ntohl(fh->ip6f_ident), -aftercut, off, fr_max, in pf_frag6cache()