Lines Matching refs:nhoff
268 unsigned int nhoff,
284 nhoff += offsetof(struct iphdr, saddr);
288 nhoff += offsetof(struct ipv6hdr, saddr);
295 ap = skb_header_pointer(skb, nhoff, size, _addrs);
344 static int ipv4_get_l4proto(const struct sk_buff *skb, unsigned int nhoff,
351 iph = skb_header_pointer(skb, nhoff, sizeof(_iph), &_iph);
361 dataoff = nhoff + (iph->ihl << 2);
366 pr_debug("bogus IPv4 packet: nhoff %u, ihl %u, skblen %u\n",
367 nhoff, iph->ihl << 2, skb->len);
374 static int ipv6_get_l4proto(const struct sk_buff *skb, unsigned int nhoff,
378 unsigned int extoff = nhoff + sizeof(struct ipv6hdr);
382 if (skb_copy_bits(skb, nhoff + offsetof(struct ipv6hdr, nexthdr),
403 unsigned int nhoff, u8 pf, u8 *l4num)
407 return ipv4_get_l4proto(skb, nhoff, l4num);
410 return ipv6_get_l4proto(skb, nhoff, l4num);
419 bool nf_ct_get_tuplepr(const struct sk_buff *skb, unsigned int nhoff,
426 protoff = get_l4proto(skb, nhoff, l3num, &protonum);
430 return nf_ct_get_tuple(skb, nhoff, protoff, l3num, protonum, net, tuple);