Home
last modified time | relevance | path

Searched refs:tun_hlen (Results 1 – 7 of 7) sorted by relevance

/kernel/linux/linux-5.10/net/ipv4/
Dip_gre.c460 gre_build_header(skb, tunnel->tun_hlen, in __gre_xmit()
752 len = tunnel->tun_hlen; in ipgre_link_update()
753 tunnel->tun_hlen = gre_calc_hlen(tunnel->parms.o_flags); in ipgre_link_update()
754 len = tunnel->tun_hlen - len; in ipgre_link_update()
953 tunnel->tun_hlen = gre_calc_hlen(tunnel->parms.o_flags); in __gre_tunnel_init()
956 tunnel->hlen = tunnel->tun_hlen + tunnel->encap_hlen; in __gre_tunnel_init()
1296 tunnel->tun_hlen = 4; /* 4-byte GRE hdr. */ in erspan_tunnel_init()
1298 tunnel->tun_hlen = 8; /* 8-byte GRE hdr. */ in erspan_tunnel_init()
1301 tunnel->hlen = tunnel->tun_hlen + tunnel->encap_hlen + in erspan_tunnel_init()
Dipip.c384 tunnel->tun_hlen = 0; in ipip_tunnel_init()
385 tunnel->hlen = tunnel->tun_hlen + tunnel->encap_hlen; in ipip_tunnel_init()
Dip_tunnel.c478 t->hlen = t->encap_hlen + t->tun_hlen; in ip_tunnel_encap_setup()
/kernel/linux/linux-5.10/net/ipv6/
Dip6_gre.c743 int tun_hlen; in __gre6_xmit() local
761 tun_hlen = gre_calc_hlen(flags); in __gre6_xmit()
763 if (skb_cow_head(skb, dev->needed_headroom ?: tun_hlen + tunnel->encap_hlen)) in __gre6_xmit()
766 gre_build_header(skb, tun_hlen, in __gre6_xmit()
778 gre_build_header(skb, tunnel->tun_hlen, flags, in __gre6_xmit()
1180 tunnel->tun_hlen = gre_calc_hlen(tunnel->parms.o_flags); in ip6gre_calc_hlen()
1181 tunnel->hlen = tunnel->tun_hlen + tunnel->encap_hlen; in ip6gre_calc_hlen()
1865 tunnel->tun_hlen = 8; in ip6erspan_calc_hlen()
1866 tunnel->hlen = tunnel->tun_hlen + tunnel->encap_hlen + in ip6erspan_calc_hlen()
Dip6_tunnel.c1200 mtu = dst_mtu(dst) - eth_hlen - psh_hlen - t->tun_hlen; in ip6_tnl_xmit()
1209 if (skb->len - t->tun_hlen - eth_hlen > mtu && !skb_is_gso(skb)) { in ip6_tnl_xmit()
1504 t->tun_hlen = 0; in ip6_tnl_link_config()
1505 t->hlen = t->encap_hlen + t->tun_hlen; in ip6_tnl_link_config()
1826 t->hlen = t->encap_hlen + t->tun_hlen; in ip6_tnl_encap_setup()
1904 t->tun_hlen = 0; in ip6_tnl_dev_init_gen()
1905 t->hlen = t->encap_hlen + t->tun_hlen; in ip6_tnl_dev_init_gen()
/kernel/linux/linux-5.10/include/net/
Dip6_tunnel.h62 int tun_hlen; /* Precalculated header length */ member
Dip_tunnels.h117 int tun_hlen; /* Precalculated header length */ member