Lines Matching refs:GETIP
346 #define GETIP(m) ((struct ip*)((m)->m_pkthdr.PH_loc.ptr)) in ip_reass() macro
354 ecn0 = GETIP(fp->ipq_frags)->ip_tos & IPTOS_ECN_MASK; in ip_reass()
359 GETIP(fp->ipq_frags)->ip_tos |= IPTOS_ECN_CE; in ip_reass()
368 if (ntohs(GETIP(q)->ip_off) > ntohs(ip->ip_off)) in ip_reass()
381 i = ntohs(GETIP(p)->ip_off) + ntohs(GETIP(p)->ip_len) - in ip_reass()
403 ntohs(GETIP(q)->ip_off); q = nq) { in ip_reass()
405 ntohs(GETIP(q)->ip_off); in ip_reass()
406 if (i < ntohs(GETIP(q)->ip_len)) { in ip_reass()
407 GETIP(q)->ip_len = htons(ntohs(GETIP(q)->ip_len) - i); in ip_reass()
408 GETIP(q)->ip_off = htons(ntohs(GETIP(q)->ip_off) + i); in ip_reass()
433 if (ntohs(GETIP(q)->ip_off) != next) { in ip_reass()
438 next += ntohs(GETIP(q)->ip_len); in ip_reass()
451 ip = GETIP(q); in ip_reass()
556 #undef GETIP in ip_reass()