Home
last modified time | relevance | path

Searched refs:t_hlen (Results 1 – 4 of 4) sorted by relevance

/Linux-v4.19/net/ipv6/
Dip6_gre.c1115 int t_hlen) in ip6gre_tnl_link_config_route() argument
1133 t_hlen; in ip6gre_tnl_link_config_route()
1136 dev->mtu = rt->dst.dev->mtu - t_hlen; in ip6gre_tnl_link_config_route()
1152 int t_hlen; in ip6gre_calc_hlen() local
1157 t_hlen = tunnel->hlen + sizeof(struct ipv6hdr); in ip6gre_calc_hlen()
1158 tunnel->dev->needed_headroom = LL_MAX_HEADER + t_hlen; in ip6gre_calc_hlen()
1159 return t_hlen; in ip6gre_calc_hlen()
1449 int t_hlen; in ip6gre_tunnel_init_common() local
1469 t_hlen = ip6gre_calc_hlen(tunnel); in ip6gre_tunnel_init_common()
1470 dev->mtu = ETH_DATA_LEN - t_hlen; in ip6gre_tunnel_init_common()
[all …]
Dsit.c832 int t_hlen = tunnel->hlen + sizeof(struct iphdr); in ipip6_tunnel_xmit() local
926 mtu = dst_mtu(&rt->dst) - t_hlen; in ipip6_tunnel_xmit()
961 max_headroom = LL_RESERVED_SPACE(tdev) + t_hlen; in ipip6_tunnel_xmit()
1079 int t_hlen = tunnel->hlen + sizeof(struct iphdr); in ipip6_tunnel_bind_dev() local
1082 dev->mtu = tdev->mtu - t_hlen; in ipip6_tunnel_bind_dev()
1364 int t_hlen = tunnel->hlen + sizeof(struct iphdr); in ipip6_tunnel_setup() local
1371 dev->hard_header_len = LL_MAX_HEADER + t_hlen; in ipip6_tunnel_setup()
1372 dev->mtu = ETH_DATA_LEN - t_hlen; in ipip6_tunnel_setup()
1374 dev->max_mtu = IP6_MAX_MTU - t_hlen; in ipip6_tunnel_setup()
Dip6_tunnel.c1435 int t_hlen; in ip6_tnl_link_config() local
1461 t_hlen = t->hlen + sizeof(struct ipv6hdr); in ip6_tnl_link_config()
1476 t_hlen; in ip6_tnl_link_config()
1478 dev->mtu = rt->dst.dev->mtu - t_hlen; in ip6_tnl_link_config()
1838 int t_hlen; in ip6_tnl_dev_init_gen() local
1856 t_hlen = t->hlen + sizeof(struct ipv6hdr); in ip6_tnl_dev_init_gen()
1859 dev->hard_header_len = LL_MAX_HEADER + t_hlen; in ip6_tnl_dev_init_gen()
1860 dev->mtu = ETH_DATA_LEN - t_hlen; in ip6_tnl_dev_init_gen()
/Linux-v4.19/net/ipv4/
Dip_tunnel.c301 int t_hlen = tunnel->hlen + sizeof(struct iphdr); in ip_tunnel_bind_dev() local
334 dev->needed_headroom = t_hlen + hlen; in ip_tunnel_bind_dev()
335 mtu -= (dev->hard_header_len + t_hlen); in ip_tunnel_bind_dev()
349 int t_hlen; in ip_tunnel_create() local
363 t_hlen = nt->hlen + sizeof(struct iphdr); in ip_tunnel_create()
365 dev->max_mtu = IP_MAX_MTU - dev->hard_header_len - t_hlen; in ip_tunnel_create()
941 int t_hlen = tunnel->hlen + sizeof(struct iphdr); in __ip_tunnel_change_mtu() local
942 int max_mtu = IP_MAX_MTU - dev->hard_header_len - t_hlen; in __ip_tunnel_change_mtu()