Lines Matching defs:GETIP
345 #define GETIP(m) ((struct ip*)((m)->m_pkthdr.PH_loc.ptr))
353 ecn0 = GETIP(fp->ipq_frags)->ip_tos & IPTOS_ECN_MASK;
358 GETIP(fp->ipq_frags)->ip_tos |= IPTOS_ECN_CE;
367 if (ntohs(GETIP(q)->ip_off) > ntohs(ip->ip_off))
380 i = ntohs(GETIP(p)->ip_off) + ntohs(GETIP(p)->ip_len) -
402 ntohs(GETIP(q)->ip_off); q = nq) {
404 ntohs(GETIP(q)->ip_off);
405 if (i < ntohs(GETIP(q)->ip_len)) {
406 GETIP(q)->ip_len = htons(ntohs(GETIP(q)->ip_len) - i);
407 GETIP(q)->ip_off = htons(ntohs(GETIP(q)->ip_off) + i);
432 if (ntohs(GETIP(q)->ip_off) != next) {
437 next += ntohs(GETIP(q)->ip_len);
450 ip = GETIP(q);
555 #undef GETIP