Home
last modified time | relevance | path

Searched refs:hh_len (Results 1 – 19 of 19) sorted by relevance

/linux-6.6.21/net/ipv4/
Dnetfilter.c29 unsigned int hh_len; in ip_route_me_harder() local
76 hh_len = skb_dst(skb)->dev->hard_header_len; in ip_route_me_harder()
77 if (skb_headroom(skb) < hh_len && in ip_route_me_harder()
78 pskb_expand_head(skb, HH_DATA_ALIGN(hh_len - skb_headroom(skb)), in ip_route_me_harder()
Dip_output.c201 unsigned int hh_len = LL_RESERVED_SPACE(dev); in ip_finish_output2() local
213 if (unlikely(skb_headroom(skb) < hh_len && dev->header_ops)) { in ip_finish_output2()
214 skb = skb_expand_head(skb, hh_len); in ip_finish_output2()
963 int hh_len; in __ip_append_data() local
987 hh_len = LL_RESERVED_SPACE(rt->dst.dev); in __ip_append_data()
1093 alloc_extra = hh_len + 15; in __ip_append_data()
1138 skb_reserve(skb, hh_len); in __ip_append_data()
/linux-6.6.21/net/ipv6/
Dnetfilter.c29 unsigned int hh_len; in ip6_route_me_harder() local
74 hh_len = skb_dst(skb)->dev->hard_header_len; in ip6_route_me_harder()
75 if (skb_headroom(skb) < hh_len && in ip6_route_me_harder()
76 pskb_expand_head(skb, HH_DATA_ALIGN(hh_len - skb_headroom(skb)), in ip6_route_me_harder()
Dip6_output.c65 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()
73 skb = skb_expand_head(skb, hh_len); in ip6_finish_output2()
1486 int hh_len; in __ip6_append_data() local
1513 hh_len = LL_RESERVED_SPACE(rt->dst.dev); in __ip6_append_data()
1667 alloc_extra = hh_len; in __ip6_append_data()
1729 skb_reserve(skb, hh_len + sizeof(struct frag_hdr) + in __ip6_append_data()
/linux-6.6.21/net/mpls/
Dmpls_iptunnel.c41 unsigned int hh_len; in mpls_xmit() local
106 hh_len = LL_RESERVED_SPACE(out_dev); in mpls_xmit()
108 hh_len = 0; in mpls_xmit()
111 if (skb_cow(skb, hh_len + new_header_size)) in mpls_xmit()
Daf_mpls.c353 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-6.6.21/include/net/
Dneighbour.h493 unsigned int hh_len; in neigh_hh_output() local
497 hh_len = READ_ONCE(hh->hh_len); in neigh_hh_output()
498 if (likely(hh_len <= HH_DATA_MOD)) { in neigh_hh_output()
511 hh_alen = HH_DATA_ALIGN(hh_len); in neigh_hh_output()
525 __skb_push(skb, hh_len); in neigh_hh_output()
539 READ_ONCE(hh->hh_len)) in neigh_output()
/linux-6.6.21/net/ipv6/netfilter/
Dnf_reject_ipv6.c284 unsigned int otcplen, hh_len; in nf_send_reset6() local
326 hh_len = (dst->dev->hard_header_len + 15)&~15; in nf_send_reset6()
327 nskb = alloc_skb(hh_len + 15 + dst->header_len + sizeof(struct ipv6hdr) in nf_send_reset6()
341 skb_reserve(nskb, hh_len + dst->header_len); in nf_send_reset6()
/linux-6.6.21/net/core/
Dlwt_bpf.c161 static int xmit_check_hhlen(struct sk_buff *skb, int hh_len) in xmit_check_hhlen() argument
163 if (skb_headroom(skb) < hh_len) { in xmit_check_hhlen()
164 int nhead = HH_DATA_ALIGN(hh_len - skb_headroom(skb)); in xmit_check_hhlen()
274 int hh_len = dst->dev->hard_header_len; in bpf_xmit() local
292 ret = xmit_check_hhlen(skb, hh_len); in bpf_xmit()
Dneighbour.c1270 if (READ_ONCE(hh->hh_len)) { in neigh_update_hhs()
1535 if (!hh->hh_len) in neigh_hh_init()
1552 if (dev->header_ops->cache && !READ_ONCE(neigh->hh.hh_len)) in neigh_resolve_output()
Dfilter.c2191 u32 hh_len = LL_RESERVED_SPACE(dev); in bpf_out_neigh_v6() local
2204 if (unlikely(skb_headroom(skb) < hh_len && dev->header_ops)) { in bpf_out_neigh_v6()
2205 skb = skb_expand_head(skb, hh_len); in bpf_out_neigh_v6()
2292 u32 hh_len = LL_RESERVED_SPACE(dev); in bpf_out_neigh_v4() local
2304 if (unlikely(skb_headroom(skb) < hh_len && dev->header_ops)) { in bpf_out_neigh_v4()
2305 skb = skb_expand_head(skb, hh_len); in bpf_out_neigh_v4()
/linux-6.6.21/net/llc/
Daf_llc.c938 int rc = -EINVAL, copied = 0, hdrlen, hh_len; in llc_ui_sendmsg() local
962 hh_len = LL_RESERVED_SPACE(dev); in llc_ui_sendmsg()
971 skb = sock_alloc_send_skb(sk, hh_len + size, noblock, &rc); in llc_ui_sendmsg()
978 hh_len != LL_RESERVED_SPACE(dev) || in llc_ui_sendmsg()
983 skb_reserve(skb, hh_len + hdrlen); in llc_ui_sendmsg()
/linux-6.6.21/net/bpf/
Dtest_run.c954 int hh_len = ETH_HLEN; in bpf_prog_test_run_skb() local
1040 __skb_push(skb, hh_len); in bpf_prog_test_run_skb()
1050 if (skb_headroom(skb) < hh_len) { in bpf_prog_test_run_skb()
1051 int nhead = HH_DATA_ALIGN(hh_len - skb_headroom(skb)); in bpf_prog_test_run_skb()
1058 memset(__skb_push(skb, hh_len), 0, hh_len); in bpf_prog_test_run_skb()
/linux-6.6.21/net/netfilter/
Dnf_nat_proto.c667 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-6.6.21/net/ethernet/
Deth.c247 smp_store_release(&hh->hh_len, ETH_HLEN); in eth_header_cache()
/linux-6.6.21/drivers/net/
Dvrf.c865 unsigned int hh_len = LL_RESERVED_SPACE(dev); in vrf_finish_output() local
872 if (unlikely(skb_headroom(skb) < hh_len && dev->header_ops)) { in vrf_finish_output()
873 skb = skb_expand_head(skb, hh_len); in vrf_finish_output()
/linux-6.6.21/net/bridge/
Dbr_netfilter_hooks.c285 READ_ONCE(neigh->hh.hh_len)) { in br_nf_pre_routing_finish_bridge()
/linux-6.6.21/drivers/firewire/
Dnet.c248 smp_store_release(&hh->hh_len, FWNET_HLEN); in fwnet_header_cache()
/linux-6.6.21/include/linux/
Dnetdevice.h284 unsigned int hh_len; member