Lines Matching refs:GETIP
335 #define GETIP(m) ((struct ip*)((m)->m_pkthdr.PH_loc.ptr)) in ip_reass() macro
343 ecn0 = GETIP(fp->ipq_frags)->ip_tos & IPTOS_ECN_MASK; in ip_reass()
348 GETIP(fp->ipq_frags)->ip_tos |= IPTOS_ECN_CE; in ip_reass()
357 if (ntohs(GETIP(q)->ip_off) > ntohs(ip->ip_off)) in ip_reass()
370 i = ntohs(GETIP(p)->ip_off) + ntohs(GETIP(p)->ip_len) - in ip_reass()
392 ntohs(GETIP(q)->ip_off); q = nq) { in ip_reass()
394 ntohs(GETIP(q)->ip_off); in ip_reass()
395 if (i < ntohs(GETIP(q)->ip_len)) { in ip_reass()
396 GETIP(q)->ip_len = htons(ntohs(GETIP(q)->ip_len) - i); in ip_reass()
397 GETIP(q)->ip_off = htons(ntohs(GETIP(q)->ip_off) + i); in ip_reass()
422 if (ntohs(GETIP(q)->ip_off) != next) { in ip_reass()
427 next += ntohs(GETIP(q)->ip_len); in ip_reass()
440 ip = GETIP(q); in ip_reass()
542 #undef GETIP in ip_reass()