Home
last modified time | relevance | path

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

/linux/net/mpls/
H A Dmpls_iptunnel.c41 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 Daf_mpls.c361 unsigned int hh_len; in mpls_forward()
431 hh_len = LL_RESERVED_SPACE(out_dev); in mpls_forward()
433 hh_len = 0; in mpls_forward()
436 if (skb_cow(skb, hh_len + new_header_size)) in mpls_forward()
353 unsigned int hh_len; mpls_forward() local
/linux/include/net/
H A Dneighbour.h507 unsigned int hh_len; in neigh_hh_output()
511 hh_len = READ_ONCE(hh->hh_len); in neigh_hh_output()
512 if (likely(hh_len <= HH_DATA_MOD)) { in neigh_hh_output()
525 hh_alen = HH_DATA_ALIGN(hh_len); in neigh_hh_output()
539 __skb_push(skb, hh_len); in neigh_output()
548 /* n->nud_state and hh->hh_len could be changed under us. in neigh_output()
553 READ_ONCE(hh->hh_len)) in __neigh_lookup()
498 unsigned int hh_len; neigh_hh_output() local
/linux/net/llc/
H A Daf_llc.c937 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/ipv4/
H A Dip_output.c205 unsigned int hh_len = LL_RESERVED_SPACE(dev); in ip_finish_output2() local
217 if (unlikely(skb_headroom(skb) < hh_len && dev->header_ops)) { in ip_finish_output2()
218 skb = skb_expand_head(skb, hh_len); in ip_finish_output2()
964 int hh_len; in __ip_append_data() local
984 hh_len = LL_RESERVED_SPACE(rt->dst.dev); in __ip_append_data()
1101 alloc_extra = hh_len + 15; in __ip_append_data()
1146 skb_reserve(skb, hh_len); in __ip_append_data()
/linux/net/netfilter/
H A Dnf_nat_proto.c624 unsigned int hh_len; in nf_xfrm_me_harder() local
649 hh_len = skb_dst(skb)->dev->hard_header_len; in nf_xfrm_me_harder()
650 if (skb_headroom(skb) < hh_len && in nf_xfrm_me_harder()
651 pskb_expand_head(skb, hh_len - skb_headroom(skb), 0, GFP_ATOMIC)) in nf_xfrm_me_harder()
/linux/net/bpf/
H A Dtest_run.c998 int hh_len = ETH_HLEN; in bpf_prog_test_run_skb() local
1142 __skb_push(skb, hh_len); in bpf_prog_test_run_skb()
1162 if (skb_headroom(skb) < hh_len) { in bpf_prog_test_run_skb()
1163 int nhead = HH_DATA_ALIGN(hh_len - skb_headroom(skb)); in bpf_prog_test_run_skb()
1170 memset(__skb_push(skb, hh_len), 0, hh_len); in bpf_prog_test_run_skb()
/linux/net/bridge/
H A Dbr_netfilter_hooks.c290 READ_ONCE(neigh->hh.hh_len)) { in br_nf_pre_routing_finish_bridge()
/linux/net/core/
H A Dneighbour.c1298 if (READ_ONCE(hh->hh_len)) { in neigh_update_hhs()
1566 if (!hh->hh_len) in neigh_hh_init()
1583 if (dev->header_ops->cache && !READ_ONCE(neigh->hh.hh_len)) in neigh_resolve_output()
H A Dfilter.c2213 u32 hh_len = LL_RESERVED_SPACE(dev); in bpf_out_neigh_v6() local
2226 if (unlikely(skb_headroom(skb) < hh_len && dev->header_ops)) { in bpf_out_neigh_v6()
2227 skb = skb_expand_head(skb, hh_len); in bpf_out_neigh_v6()
2315 u32 hh_len = LL_RESERVED_SPACE(dev); in bpf_out_neigh_v4() local
2327 if (unlikely(skb_headroom(skb) < hh_len && dev->header_ops)) { in bpf_out_neigh_v4()
2328 skb = skb_expand_head(skb, hh_len); in bpf_out_neigh_v4()
/linux/drivers/firewire/
H A Dnet.c248 smp_store_release(&hh->hh_len, FWNET_HLEN); in fwnet_header_cache()