/linux-master/net/ipv6/ |
H A D | udp_offload.c | 165 INDIRECT_CALLABLE_SCOPE int udp6_gro_complete(struct sk_buff *skb, int nhoff) argument 169 struct udphdr *uh = (struct udphdr *)(skb->data + nhoff); 173 uh->len = htons(skb->len - nhoff); 184 uh->check = ~udp_v6_check(skb->len - nhoff, &ipv6h->saddr, 187 return udp_gro_complete(skb, nhoff, udp6_lib_lookup_skb);
|
H A D | ip6_offload.c | 119 int nhoff; local 126 nhoff = skb_network_header(skb) - skb_mac_header(skb); 154 skb->network_header = skb_mac_header(skb) + nhoff - skb->head; 163 ipv6h = (struct ipv6hdr *)(skb_mac_header(skb) + nhoff); 169 payload_len = skb->len - nhoff - sizeof(*ipv6h); 350 INDIRECT_CALLABLE_SCOPE int ipv6_gro_complete(struct sk_buff *skb, int nhoff) argument 359 skb_set_inner_network_header(skb, nhoff); 362 payload_len = skb->len - nhoff - sizeof(*iph); 374 iph = (struct ipv6hdr *)(skb->data + nhoff); 387 iph = (struct ipv6hdr *)(skb->data + nhoff); 402 sit_gro_complete(struct sk_buff *skb, int nhoff) argument 409 ip6ip6_gro_complete(struct sk_buff *skb, int nhoff) argument 416 ip4ip6_gro_complete(struct sk_buff *skb, int nhoff) argument [all...] |
H A D | ip6_gre.c | 949 int nhoff; local 966 nhoff = skb_network_offset(skb); 968 (ntohs(ip_hdr(skb)->tot_len) > skb->len - nhoff)) 977 thoff = nhoff + sizeof(struct ipv6hdr);
|
H A D | xfrm6_tunnel.c | 219 return skb_network_header(skb)[IP6CB(skb)->nhoff];
|
H A D | xfrm6_input.c | 48 skb_network_header(skb)[IP6CB(skb)->nhoff] = 229 return xfrm6_rcv_spi(skb, skb_network_header(skb)[IP6CB(skb)->nhoff],
|
H A D | reassembly.c | 107 struct frag_hdr *fhdr, int nhoff, 214 fq->nhoffset = nhoff; 260 unsigned int nhoff; local 283 nhoff = fq->nhoffset; 284 skb_network_header(skb)[nhoff] = skb_transport_header(skb)[0]; 298 IP6CB(skb)->nhoff = nhoff; 358 IP6CB(skb)->nhoff = (u8 *)fhdr - skb_network_header(skb); 388 ret = ip6_frag_queue(fq, skb, fhdr, IP6CB(skb)->nhoff, 106 ip6_frag_queue(struct frag_queue *fq, struct sk_buff *skb, struct frag_hdr *fhdr, int nhoff, u32 *prob_offset) argument
|
H A D | output_core.c | 132 IP6CB(skb)->nhoff = offsetof(struct ipv6hdr, nexthdr);
|
/linux-master/net/ipv4/ |
H A D | udp_offload.c | 691 int udp_gro_complete(struct sk_buff *skb, int nhoff, argument 694 __be16 newlen = htons(skb->len - nhoff); 695 struct udphdr *uh = (struct udphdr *)(skb->data + nhoff); 717 nhoff + sizeof(struct udphdr)); 729 INDIRECT_CALLABLE_SCOPE int udp4_gro_complete(struct sk_buff *skb, int nhoff) argument 733 struct udphdr *uh = (struct udphdr *)(skb->data + nhoff); 737 uh->len = htons(skb->len - nhoff); 748 uh->check = ~udp_v4_check(skb->len - nhoff, iph->saddr, 751 return udp_gro_complete(skb, nhoff, udp4_lib_lookup_skb);
|
H A D | af_inet.c | 1377 int nhoff; local 1382 nhoff = skb_network_header(skb) - skb_mac_header(skb); 1421 skb->network_header = skb_mac_header(skb) + nhoff - skb->head; 1431 iph = (struct iphdr *)(skb_mac_header(skb) + nhoff); 1436 offset += skb->len - nhoff - ihl; 1437 tot_len = skb->len - nhoff; 1449 tot_len = skb->len - nhoff; 1453 tot_len = skb->len - nhoff; 1645 int inet_gro_complete(struct sk_buff *skb, int nhoff) argument 1647 struct iphdr *iph = (struct iphdr *)(skb->data + nhoff); 1677 ipip_gro_complete(struct sk_buff *skb, int nhoff) argument [all...] |
H A D | ip_gre.c | 531 int nhoff; local 561 nhoff = skb_network_offset(skb); 563 (ntohs(ip_hdr(skb)->tot_len) > skb->len - nhoff)) 572 thoff = nhoff + sizeof(struct ipv6hdr);
|
/linux-master/net/core/ |
H A D | gro.c | 368 static inline void skb_gro_reset_offset(struct sk_buff *skb, u32 nhoff) argument 386 (!NET_IP_ALIGN || !((skb_frag_off(frag0) + nhoff) & 3))) {
|
/linux-master/net/8021q/ |
H A D | vlan_core.c | 515 static int vlan_gro_complete(struct sk_buff *skb, int nhoff) argument 517 struct vlan_hdr *vhdr = (struct vlan_hdr *)(skb->data + nhoff); 526 skb, nhoff + sizeof(*vhdr));
|
/linux-master/include/net/ |
H A D | gro.h | 417 int udp_gro_complete(struct sk_buff *skb, int nhoff, udp_lookup_t lookup);
|
/linux-master/drivers/net/vxlan/ |
H A D | vxlan_core.c | 770 static int vxlan_gro_complete(struct sock *sk, struct sk_buff *skb, int nhoff) argument 775 return eth_gro_complete(skb, nhoff + sizeof(struct vxlanhdr)); 778 static int vxlan_gpe_gro_complete(struct sock *sk, struct sk_buff *skb, int nhoff) argument 780 struct vxlanhdr *vh = (struct vxlanhdr *)(skb->data + nhoff); 789 err = ptype->callbacks.gro_complete(skb, nhoff + sizeof(struct vxlanhdr));
|
/linux-master/net/ethernet/ |
H A D | eth.c | 446 int eth_gro_complete(struct sk_buff *skb, int nhoff) argument 448 struct ethhdr *eh = (struct ethhdr *)(skb->data + nhoff); 454 skb_set_inner_mac_header(skb, nhoff); 460 skb, nhoff + sizeof(*eh));
|
/linux-master/include/linux/ |
H A D | etherdevice.h | 67 int eth_gro_complete(struct sk_buff *skb, int nhoff);
|
H A D | udp.h | 85 int nhoff);
|
H A D | skbuff.h | 1520 __be16 proto, int nhoff, int hlen, unsigned int flags); 1526 __be16 proto, int nhoff, int hlen, unsigned int flags); 1550 int nhoff, int hlen, unsigned int flags) 1554 data, proto, nhoff, hlen, flags); 1546 skb_flow_dissect_flow_keys_basic(const struct net *net, const struct sk_buff *skb, struct flow_keys_basic *flow, const void *data, __be16 proto, int nhoff, int hlen, unsigned int flags) argument
|
H A D | netdevice.h | 2710 int (*gro_complete)(struct sk_buff *skb, int nhoff);
|
/linux-master/net/bridge/netfilter/ |
H A D | nf_conntrack_bridge.c | 207 int nhoff, len; local 209 nhoff = skb_network_offset(skb); 216 if (skb->len < nhoff + len || 226 int nhoff, len; local 228 nhoff = skb_network_offset(skb); 233 len = ntohs(hdr->payload_len) + sizeof(struct ipv6hdr) + nhoff;
|
/linux-master/drivers/net/ |
H A D | geneve.c | 555 int nhoff) 563 gh = (struct genevehdr *)(skb->data + nhoff); 569 return eth_gro_complete(skb, nhoff + gh_len); 573 err = ptype->callbacks.gro_complete(skb, nhoff + gh_len); 575 skb_set_inner_mac_header(skb, nhoff + gh_len); 554 geneve_gro_complete(struct sock *sk, struct sk_buff *skb, int nhoff) argument
|
/linux-master/net/ipv6/netfilter/ |
H A D | nf_conntrack_reasm.c | 167 const struct frag_hdr *fhdr, int nhoff) 278 fq->nhoffset = nhoff; 443 int fhoff, nhoff, ret; local 455 if (find_prev_fhdr(skb, &prevhdr, &nhoff, &fhoff) < 0) 482 ret = nf_ct_frag6_queue(fq, skb, fhdr, nhoff); 166 nf_ct_frag6_queue(struct frag_queue *fq, struct sk_buff *skb, const struct frag_hdr *fhdr, int nhoff) argument
|
/linux-master/tools/include/uapi/linux/ |
H A D | bpf.h | 7239 __u16 nhoff; member in struct:bpf_flow_keys
|
/linux-master/net/xfrm/ |
H A D | xfrm_interface_core.c | 345 return xfrmi_input(skb, skb_network_header(skb)[IP6CB(skb)->nhoff],
|
/linux-master/net/netfilter/ |
H A D | nf_conntrack_core.c | 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, argument 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, argument 267 nf_ct_get_tuple(const struct sk_buff *skb, unsigned int nhoff, unsigned int dataoff, u_int16_t l3num, u_int8_t protonum, struct net *net, struct nf_conntrack_tuple *tuple) argument 402 get_l4proto(const struct sk_buff *skb, unsigned int nhoff, u8 pf, u8 *l4num) argument 419 nf_ct_get_tuplepr(const struct sk_buff *skb, unsigned int nhoff, u_int16_t l3num, struct net *net, struct nf_conntrack_tuple *tuple) argument [all...] |