iphdr
static __inline struct iphdr *
return (struct iphdr *)skb_network_header(skb);
ip_send_check(struct iphdr *iph)
const struct iphdr *ip;
ip = (const struct iphdr *)(skb->data + nhoff);
struct ip *ip, iphdr;
(caddr_t) &iphdr);
ip = &iphdr;
struct ip *ip, iphdr;
(caddr_t) &iphdr);
ip = &iphdr;
struct ip *ip_inner, iphdr;
m_copydata(m, offset, sizeof(struct ip), (caddr_t)&iphdr);
ip_inner = &iphdr;
struct ip *iphdr;
iphdr = mtodo(m, offset - sizeof(struct ip));
info.ecn = (iphdr->ip_tos & IPTOS_ECN_MASK);
info.ttl = iphdr->ip_ttl;
struct ip *iphdr;
iphdr = mtodo(m, offset - sizeof(struct ip));
if (ip_ecn_egress(ECN_COMPLETE, &info->ecn, &iphdr->ip_tos) == 0)
iphdr->ip_ttl = info->ttl;
struct ip *iphdr;
#define gif_iphdr gif_uhdr.iphdr
#define gre_iphdr gre_uhdr.iphdr
struct greip *iphdr;
ip_next(struct ip *iphdr)
char *p = (char *)iphdr;
return (&p[iphdr->ip_hl * 4]);