Lines Matching refs:GETIP
372 #define GETIP(m) ((struct ip*)((m)->m_pkthdr.PH_loc.ptr)) in ip_reass() macro
380 ecn0 = GETIP(fp->ipq_frags)->ip_tos & IPTOS_ECN_MASK; in ip_reass()
385 GETIP(fp->ipq_frags)->ip_tos |= IPTOS_ECN_CE; in ip_reass()
394 if (ntohs(GETIP(q)->ip_off) > ntohs(ip->ip_off)) in ip_reass()
407 i = ntohs(GETIP(p)->ip_off) + ntohs(GETIP(p)->ip_len) - in ip_reass()
429 ntohs(GETIP(q)->ip_off); q = nq) { in ip_reass()
431 ntohs(GETIP(q)->ip_off); in ip_reass()
432 if (i < ntohs(GETIP(q)->ip_len)) { in ip_reass()
433 GETIP(q)->ip_len = htons(ntohs(GETIP(q)->ip_len) - i); in ip_reass()
434 GETIP(q)->ip_off = htons(ntohs(GETIP(q)->ip_off) + i); in ip_reass()
459 if (ntohs(GETIP(q)->ip_off) != next) { in ip_reass()
464 next += ntohs(GETIP(q)->ip_len); in ip_reass()
477 ip = GETIP(q); in ip_reass()
583 #undef GETIP in ip_reass()