Lines Matching defs:ip
9 #include <linux/ip.h>
16 #include <net/ip.h>
35 const struct iphdr *ip = ip_hdr(skb);
40 return ip->ttl == f_ttl;
43 else if (ip->ttl <= f_ttl)
47 if (inet_ifa_match(ip->saddr, ifa)) {
48 ret = (ip->ttl == f_ttl);
167 const struct iphdr *ip,
180 ctx->totlen = ntohs(ip->tot_len);
181 ctx->df = ntohs(ip->frag_off) & IP_DF;
202 const struct iphdr *ip = ip_hdr(skb);
214 tcp = nf_osf_hdr_ctx_init(&ctx, skb, ip, opts, &_tcph);
239 &ip->saddr, ntohs(tcp->source),
240 &ip->daddr, ntohs(tcp->dest),
241 f->ttl - ip->ttl);
251 &ip->saddr, ntohs(tcp->source),
252 &ip->daddr, ntohs(tcp->dest));
265 const struct iphdr *ip = ip_hdr(skb);
276 tcp = nf_osf_hdr_ctx_init(&ctx, skb, ip, opts, &_tcph);