Home
last modified time | relevance | path

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

/Linux-v5.10/net/ipv4/
Dip_gre.c462 gre_build_header(skb, tunnel->tun_hlen, in __gre_xmit()
744 len = tunnel->tun_hlen; in ipgre_link_update()
745 tunnel->tun_hlen = gre_calc_hlen(tunnel->parms.o_flags); in ipgre_link_update()
746 len = tunnel->tun_hlen - len; in ipgre_link_update()
945 tunnel->tun_hlen = gre_calc_hlen(tunnel->parms.o_flags); in __gre_tunnel_init()
948 tunnel->hlen = tunnel->tun_hlen + tunnel->encap_hlen; in __gre_tunnel_init()
1288 tunnel->tun_hlen = 4; /* 4-byte GRE hdr. */ in erspan_tunnel_init()
1290 tunnel->tun_hlen = 8; /* 8-byte GRE hdr. */ in erspan_tunnel_init()
1293 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.c475 t->hlen = t->encap_hlen + t->tun_hlen; in ip_tunnel_encap_setup()
/Linux-v5.10/include/net/
Dip6_tunnel.h62 int tun_hlen; /* Precalculated header length */ member
Dip_tunnels.h117 int tun_hlen; /* Precalculated header length */ member
/Linux-v5.10/net/ipv6/
Dip6_tunnel.c1201 mtu = dst_mtu(dst) - eth_hlen - psh_hlen - t->tun_hlen; in ip6_tnl_xmit()
1210 if (skb->len - t->tun_hlen - eth_hlen > mtu && !skb_is_gso(skb)) { in ip6_tnl_xmit()
1505 t->tun_hlen = 0; in ip6_tnl_link_config()
1506 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()
Dip6_gre.c763 tunnel->tun_hlen = gre_calc_hlen(flags); in __gre6_xmit()
765 gre_build_header(skb, tunnel->tun_hlen, in __gre6_xmit()
775 gre_build_header(skb, tunnel->tun_hlen, tunnel->parms.o_flags, in __gre6_xmit()
1163 tunnel->tun_hlen = gre_calc_hlen(tunnel->parms.o_flags); in ip6gre_calc_hlen()
1164 tunnel->hlen = tunnel->tun_hlen + tunnel->encap_hlen; in ip6gre_calc_hlen()
1849 tunnel->tun_hlen = 8; in ip6erspan_calc_hlen()
1850 tunnel->hlen = tunnel->tun_hlen + tunnel->encap_hlen + in ip6erspan_calc_hlen()