| /linux/net/ipv6/ |
| H A D | netfilter.c | 30 unsigned int hh_len; in ip6_route_me_harder() local 79 hh_len = skb_dst_dev(skb)->hard_header_len; in ip6_route_me_harder() 80 if (skb_headroom(skb) < hh_len && in ip6_route_me_harder() 81 pskb_expand_head(skb, HH_DATA_ALIGN(hh_len - skb_headroom(skb)), in ip6_route_me_harder()
|
| H A D | ip6_output.c | 65 unsigned int hh_len = LL_RESERVED_SPACE(dev); in ip6_finish_output2() local 72 if (unlikely(hh_len > skb_headroom(skb)) && dev->header_ops) { in ip6_finish_output2() 74 skb = skb_expand_head(skb, hh_len); in ip6_finish_output2() 1468 int hh_len; in __ip6_append_data() local 1491 hh_len = LL_RESERVED_SPACE(rt->dst.dev); in __ip6_append_data() 1654 alloc_extra = hh_len; in __ip6_append_data() 1713 skb_reserve(skb, hh_len + sizeof(struct frag_hdr) + in __ip6_append_data()
|
| /linux/include/net/ |
| H A D | neighbour.h | 511 unsigned int hh_len; in neigh_hh_output() local 515 hh_len = READ_ONCE(hh->hh_len); in neigh_hh_output() 516 if (likely(hh_len <= HH_DATA_MOD)) { in neigh_hh_output() 529 hh_alen = HH_DATA_ALIGN(hh_len); in neigh_hh_output() 543 __skb_push(skb, hh_len); in neigh_hh_output() 557 READ_ONCE(hh->hh_len)) in neigh_output()
|
| /linux/net/llc/ |
| H A D | af_llc.c | 935 int rc = -EINVAL, copied = 0, hdrlen, hh_len; in llc_ui_sendmsg() local 959 hh_len = LL_RESERVED_SPACE(dev); in llc_ui_sendmsg() 968 skb = sock_alloc_send_skb(sk, hh_len + size, noblock, &rc); in llc_ui_sendmsg() 975 hh_len != LL_RESERVED_SPACE(dev) || in llc_ui_sendmsg() 980 skb_reserve(skb, hh_len + hdrlen); in llc_ui_sendmsg()
|
| /linux/net/ipv4/ |
| H A D | ip_output.c | 204 unsigned int hh_len = LL_RESERVED_SPACE(dev); in ip_finish_output2() local 216 if (unlikely(skb_headroom(skb) < hh_len && dev->header_ops)) { in ip_finish_output2() 217 skb = skb_expand_head(skb, hh_len); in ip_finish_output2() 967 int hh_len; in __ip_append_data() local 987 hh_len = LL_RESERVED_SPACE(rt->dst.dev); in __ip_append_data() 1104 alloc_extra = hh_len + 15; in __ip_append_data() 1149 skb_reserve(skb, hh_len); in __ip_append_data()
|
| /linux/net/netfilter/ |
| H A D | nf_nat_proto.c | 605 unsigned int hh_len; in nf_xfrm_me_harder() local 630 hh_len = skb_dst(skb)->dev->hard_header_len; in nf_xfrm_me_harder() 631 if (skb_headroom(skb) < hh_len && in nf_xfrm_me_harder() 632 pskb_expand_head(skb, hh_len - skb_headroom(skb), 0, GFP_ATOMIC)) in nf_xfrm_me_harder()
|
| H A D | nf_flow_table_ip.c | 740 unsigned int hh_len = LL_RESERVED_SPACE(dev); in __nf_flow_queue_xmit() local 742 if (unlikely(skb_headroom(skb) < hh_len && dev->header_ops)) { in __nf_flow_queue_xmit() 743 skb = skb_expand_head(skb, hh_len); in __nf_flow_queue_xmit()
|
| /linux/net/bpf/ |
| H A D | test_run.c | 1049 int hh_len = ETH_HLEN; in bpf_prog_test_run_skb() local 1197 __skb_push(skb, hh_len); in bpf_prog_test_run_skb() 1229 if (skb_headroom(skb) < hh_len) { in bpf_prog_test_run_skb() 1230 int nhead = HH_DATA_ALIGN(hh_len - skb_headroom(skb)); in bpf_prog_test_run_skb() 1237 memset(__skb_push(skb, hh_len), 0, hh_len); in bpf_prog_test_run_skb()
|
| /linux/net/ethernet/ |
| H A D | eth.c | 232 smp_store_release(&hh->hh_len, ETH_HLEN); in eth_header_cache()
|
| /linux/drivers/net/ |
| H A D | vrf.c | 801 unsigned int hh_len = LL_RESERVED_SPACE(dev); in vrf_finish_output() local 808 if (unlikely(skb_headroom(skb) < hh_len && dev->header_ops)) { in vrf_finish_output() 809 skb = skb_expand_head(skb, hh_len); in vrf_finish_output()
|
| /linux/net/mpls/ |
| H A D | af_mpls.c | 378 unsigned int hh_len; in mpls_forward() local 448 hh_len = LL_RESERVED_SPACE(out_dev); in mpls_forward() 450 hh_len = 0; in mpls_forward() 453 if (skb_cow(skb, hh_len + new_header_size)) in mpls_forward()
|
| /linux/net/bridge/ |
| H A D | br_netfilter_hooks.c | 291 READ_ONCE(neigh->hh.hh_len)) { in br_nf_pre_routing_finish_bridge()
|
| /linux/drivers/firewire/ |
| H A D | net.c | 247 smp_store_release(&hh->hh_len, FWNET_HLEN); in fwnet_header_cache()
|
| /linux/net/core/ |
| H A D | filter.c | 2220 u32 hh_len = LL_RESERVED_SPACE(dev); in bpf_out_neigh_v6() local 2233 if (unlikely(skb_headroom(skb) < hh_len && dev->header_ops)) { in bpf_out_neigh_v6() 2234 skb = skb_expand_head(skb, hh_len); in bpf_out_neigh_v6() 2325 u32 hh_len = LL_RESERVED_SPACE(dev); in bpf_out_neigh_v4() local 2337 if (unlikely(skb_headroom(skb) < hh_len && dev->header_ops)) { in bpf_out_neigh_v4() 2338 skb = skb_expand_head(skb, hh_len); in bpf_out_neigh_v4()
|
| /linux/include/linux/ |
| H A D | netdevice.h | 283 unsigned int hh_len; member
|