/linux-3.4.99/net/core/ |
D | flow_dissector.c | 25 int poff, nhoff = skb_network_offset(skb); in skb_flow_dissect() local 37 iph = skb_header_pointer(skb, nhoff, sizeof(_iph), &_iph); in skb_flow_dissect() 46 nhoff += iph->ihl * 4; in skb_flow_dissect() 53 iph = skb_header_pointer(skb, nhoff, sizeof(_iph), &_iph); in skb_flow_dissect() 60 nhoff += sizeof(struct ipv6hdr); in skb_flow_dissect() 67 vlan = skb_header_pointer(skb, nhoff, sizeof(_vlan), &_vlan); in skb_flow_dissect() 72 nhoff += sizeof(*vlan); in skb_flow_dissect() 80 hdr = skb_header_pointer(skb, nhoff, sizeof(_hdr), &_hdr); in skb_flow_dissect() 84 nhoff += PPPOE_SES_HLEN; in skb_flow_dissect() 105 hdr = skb_header_pointer(skb, nhoff, sizeof(_hdr), &_hdr); in skb_flow_dissect() [all …]
|
/linux-3.4.99/net/ipv6/ |
D | ip6_input.c | 144 IP6CB(skb)->nhoff = offsetof(struct ipv6hdr, nexthdr); in ipv6_rcv() 193 unsigned int nhoff; in ip6_input_finish() local 208 nhoff = IP6CB(skb)->nhoff; in ip6_input_finish() 209 nexthdr = skb_network_header(skb)[nhoff]; in ip6_input_finish() 249 ICMPV6_UNK_NEXTHDR, nhoff); in ip6_input_finish()
|
D | reassembly.c | 254 struct frag_hdr *fhdr, int nhoff) in ip6_frag_queue() argument 383 fq->nhoffset = nhoff; in ip6_frag_queue() 429 unsigned int nhoff; in ip6_frag_reasm() local 492 nhoff = fq->nhoffset; in ip6_frag_reasm() 493 skb_network_header(head)[nhoff] = skb_transport_header(head)[0]; in ip6_frag_reasm() 518 IP6CB(head)->nhoff = nhoff; in ip6_frag_reasm() 577 IP6CB(skb)->nhoff = (u8 *)fhdr - skb_network_header(skb); in ipv6_frag_rcv() 591 ret = ip6_frag_queue(fq, skb, fhdr, IP6CB(skb)->nhoff); in ipv6_frag_rcv()
|
D | xfrm6_input.c | 34 skb_network_header(skb)[IP6CB(skb)->nhoff] = in xfrm6_transport_finish() 52 return xfrm6_rcv_spi(skb, skb_network_header(skb)[IP6CB(skb)->nhoff], in xfrm6_rcv()
|
D | exthdrs.c | 297 opt->nhoff = dstbuf; in ipv6_destopt_rcv() 299 opt->nhoff = opt->dst1; in ipv6_destopt_rcv() 373 opt->nhoff = (&hdr->nexthdr) - skb_network_header(skb); in ipv6_rthdr_rcv() 659 opt->nhoff = sizeof(struct ipv6hdr); in ipv6_parse_hopopts()
|
D | xfrm6_tunnel.c | 234 return skb_network_header(skb)[IP6CB(skb)->nhoff]; in xfrm6_tunnel_input()
|
D | xfrm6_policy.c | 132 u8 nexthdr = nh[IP6CB(skb)->nhoff]; in _decode_session6()
|
/linux-3.4.99/net/netfilter/ |
D | nf_conntrack_l3proto_generic.c | 34 static bool generic_pkt_to_tuple(const struct sk_buff *skb, unsigned int nhoff, in generic_pkt_to_tuple() argument 58 static int generic_get_l4proto(const struct sk_buff *skb, unsigned int nhoff, in generic_get_l4proto() argument
|
D | nf_conntrack_core.c | 111 unsigned int nhoff, in nf_ct_get_tuple() argument 122 if (l3proto->pkt_to_tuple(skb, nhoff, tuple) == 0) in nf_ct_get_tuple() 132 bool nf_ct_get_tuplepr(const struct sk_buff *skb, unsigned int nhoff, in nf_ct_get_tuplepr() argument 144 ret = l3proto->get_l4proto(skb, nhoff, &protoff, &protonum); in nf_ct_get_tuplepr() 152 ret = nf_ct_get_tuple(skb, nhoff, protoff, l3num, protonum, tuple, in nf_ct_get_tuplepr()
|
/linux-3.4.99/include/net/netfilter/ |
D | nf_conntrack_l3proto.h | 30 bool (*pkt_to_tuple)(const struct sk_buff *skb, unsigned int nhoff, 49 int (*get_l4proto)(const struct sk_buff *skb, unsigned int nhoff,
|
D | nf_conntrack_core.h | 36 unsigned int nhoff,
|
D | nf_conntrack.h | 219 unsigned int nhoff, u_int16_t l3num,
|
/linux-3.4.99/net/ipv4/netfilter/ |
D | nf_conntrack_l3proto_ipv4.c | 37 static bool ipv4_pkt_to_tuple(const struct sk_buff *skb, unsigned int nhoff, in ipv4_pkt_to_tuple() argument 42 ap = skb_header_pointer(skb, nhoff + offsetof(struct iphdr, saddr), in ipv4_pkt_to_tuple() 69 static int ipv4_get_l4proto(const struct sk_buff *skb, unsigned int nhoff, in ipv4_get_l4proto() argument 75 iph = skb_header_pointer(skb, nhoff, sizeof(_iph), &_iph); in ipv4_get_l4proto() 84 *dataoff = nhoff + (iph->ihl << 2); in ipv4_get_l4proto() 91 nhoff, iph->ihl << 2, skb->len); in ipv4_get_l4proto()
|
/linux-3.4.99/net/ipv6/netfilter/ |
D | nf_conntrack_l3proto_ipv6.c | 34 static bool ipv6_pkt_to_tuple(const struct sk_buff *skb, unsigned int nhoff, in ipv6_pkt_to_tuple() argument 40 ap = skb_header_pointer(skb, nhoff + offsetof(struct ipv6hdr, saddr), in ipv6_pkt_to_tuple() 119 static int ipv6_get_l4proto(const struct sk_buff *skb, unsigned int nhoff, in ipv6_get_l4proto() argument 122 unsigned int extoff = nhoff + sizeof(struct ipv6hdr); in ipv6_get_l4proto() 126 if (skb_copy_bits(skb, nhoff + offsetof(struct ipv6hdr, nexthdr), in ipv6_get_l4proto()
|
D | nf_conntrack_reasm.c | 191 const struct frag_hdr *fhdr, int nhoff) in nf_ct_frag6_queue() argument 317 fq->nhoffset = nhoff; in nf_ct_frag6_queue() 528 int fhoff, nhoff; in nf_ct_frag6_gather() local 538 if (find_prev_fhdr(skb, &prevhdr, &nhoff, &fhoff) < 0) in nf_ct_frag6_gather() 569 if (nf_ct_frag6_queue(fq, clone, fhdr, nhoff) < 0) { in nf_ct_frag6_gather()
|
/linux-3.4.99/drivers/net/ethernet/sfc/ |
D | filter.c | 1076 int nhoff; in efx_filter_rfs() local 1079 nhoff = skb_network_offset(skb); in efx_filter_rfs() 1085 EFX_BUG_ON_PARANOID(skb_headlen(skb) < nhoff + sizeof(*ip)); in efx_filter_rfs() 1086 ip = (const struct iphdr *)(skb->data + nhoff); in efx_filter_rfs() 1089 EFX_BUG_ON_PARANOID(skb_headlen(skb) < nhoff + 4 * ip->ihl + 4); in efx_filter_rfs() 1090 ports = (const __be16 *)(skb->data + nhoff + 4 * ip->ihl); in efx_filter_rfs()
|
/linux-3.4.99/include/linux/ |
D | ipv6.h | 254 __u16 nhoff; member
|