Searched refs:hh_len (Results 1 – 13 of 13) sorted by relevance
/linux/net/ipv4/ |
H A D | netfilter.c | 30 unsigned int hh_len; in ip_route_me_harder() local 77 hh_len = skb_dst(skb)->dev->hard_header_len; in ip_route_me_harder() 78 if (skb_headroom(skb) < hh_len && in ip_route_me_harder() 79 pskb_expand_head(skb, HH_DATA_ALIGN(hh_len - skb_headroom(skb)), in ip_route_me_harder()
|
/linux/net/mpls/ |
H A D | mpls_iptunnel.c | 41 unsigned int hh_len; in mpls_xmit() local 104 hh_len = LL_RESERVED_SPACE(out_dev); in mpls_xmit() 106 hh_len = 0; in mpls_xmit() 109 if (skb_cow_head(skb, hh_len + new_header_size)) in mpls_xmit()
|
H A D | af_mpls.c | 353 unsigned int hh_len; in mpls_forward() local 423 hh_len = LL_RESERVED_SPACE(out_dev); in mpls_forward() 425 hh_len = 0; in mpls_forward() 428 if (skb_cow(skb, hh_len + new_header_size)) in mpls_forward()
|
/linux/net/ipv6/ |
H A D | netfilter.c | 29 unsigned int hh_len; in ip6_route_me_harder() local 75 hh_len = skb_dst(skb)->dev->hard_header_len; in ip6_route_me_harder() 76 if (skb_headroom(skb) < hh_len && in ip6_route_me_harder() 77 pskb_expand_head(skb, HH_DATA_ALIGN(hh_len - skb_headroom(skb)), in ip6_route_me_harder()
|
/linux/net/core/ |
H A D | lwt_bpf.c | 166 static int xmit_check_hhlen(struct sk_buff *skb, int hh_len) in xmit_check_hhlen() argument 168 if (skb_headroom(skb) < hh_len) { in xmit_check_hhlen() 169 int nhead = HH_DATA_ALIGN(hh_len - skb_headroom(skb)); in xmit_check_hhlen() 279 int hh_len = dst->dev->hard_header_len; in bpf_xmit() local 297 ret = xmit_check_hhlen(skb, hh_len); in bpf_xmit()
|
H A D | neighbour.c | 1221 if (READ_ONCE(hh->hh_len)) { in neigh_update_hhs() 1486 if (!hh->hh_len) in neigh_hh_init() 1503 if (dev->header_ops->cache && !READ_ONCE(neigh->hh.hh_len)) in neigh_resolve_output()
|
H A D | filter.c | 2195 u32 hh_len = LL_RESERVED_SPACE(dev); in bpf_out_neigh_v6() local 2208 if (unlikely(skb_headroom(skb) < hh_len && dev->header_ops)) { in bpf_out_neigh_v6() 2209 skb = skb_expand_head(skb, hh_len); in bpf_out_neigh_v6() 2296 u32 hh_len = LL_RESERVED_SPACE(dev); in bpf_out_neigh_v4() local 2308 if (unlikely(skb_headroom(skb) < hh_len && dev->header_ops)) { in bpf_out_neigh_v4() 2309 skb = skb_expand_head(skb, hh_len); in bpf_out_neigh_v4()
|
/linux/net/llc/ |
H A D | af_llc.c | 937 int rc = -EINVAL, copied = 0, hdrlen, hh_len; in llc_ui_sendmsg() local 961 hh_len = LL_RESERVED_SPACE(dev); in llc_ui_sendmsg() 970 skb = sock_alloc_send_skb(sk, hh_len + size, noblock, &rc); in llc_ui_sendmsg() 977 hh_len != LL_RESERVED_SPACE(dev) || in llc_ui_sendmsg() 982 skb_reserve(skb, hh_len + hdrlen); in llc_ui_sendmsg()
|
/linux/net/bpf/ |
H A D | test_run.c | 988 int hh_len = ETH_HLEN; in bpf_prog_test_run_skb() local 1077 __skb_push(skb, hh_len); in bpf_prog_test_run_skb() 1097 if (skb_headroom(skb) < hh_len) { in bpf_prog_test_run_skb() 1098 int nhead = HH_DATA_ALIGN(hh_len - skb_headroom(skb)); in bpf_prog_test_run_skb() 1105 memset(__skb_push(skb, hh_len), 0, hh_len); in bpf_prog_test_run_skb()
|
/linux/net/netfilter/ |
H A D | nf_nat_proto.c | 667 unsigned int hh_len; in nf_xfrm_me_harder() local 692 hh_len = skb_dst(skb)->dev->hard_header_len; in nf_xfrm_me_harder() 693 if (skb_headroom(skb) < hh_len && in nf_xfrm_me_harder() 694 pskb_expand_head(skb, hh_len - skb_headroom(skb), 0, GFP_ATOMIC)) in nf_xfrm_me_harder()
|
/linux/net/ethernet/ |
H A D | eth.c | 235 smp_store_release(&hh->hh_len, ETH_HLEN); in eth_header_cache()
|
/linux/drivers/firewire/ |
H A D | net.c | 248 smp_store_release(&hh->hh_len, FWNET_HLEN); in fwnet_header_cache()
|
/linux/include/linux/ |
H A D | netdevice.h | 283 unsigned int hh_len; member
|