Lines Matching refs:ip
58 #include <netinet/ip.h> /* ip_len, ip_off */
419 struct ip *ip;
420 ip = (struct ip *)mtodo(m, dn_tag_get(m)->iphdr_off);
422 switch (ip->ip_v) {
427 if ((ip->ip_tos & IPTOS_ECN_MASK) == IPTOS_ECN_NOTECT)
429 if ((ip->ip_tos & IPTOS_ECN_MASK) == IPTOS_ECN_CE)
436 old = *(uint16_t *)ip;
437 ip->ip_tos |= IPTOS_ECN_CE;
438 ip->ip_sum = cksum_adjust(ip->ip_sum, old, *(uint16_t *)ip);
444 struct ip6_hdr *ip6 = (struct ip6_hdr *)ip;