Home
last modified time | relevance | path

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

/linux-4.4.14/net/ipv6/
Dsit.c825 int t_hlen = tunnel->hlen + sizeof(struct iphdr); in ipip6_tunnel_xmit() local
922 mtu = dst_mtu(&rt->dst) - t_hlen; in ipip6_tunnel_xmit()
957 max_headroom = LL_RESERVED_SPACE(tdev) + t_hlen; in ipip6_tunnel_xmit()
1072 int t_hlen = tunnel->hlen + sizeof(struct iphdr); in ipip6_tunnel_bind_dev() local
1075 dev->mtu = tdev->mtu - t_hlen; in ipip6_tunnel_bind_dev()
1323 int t_hlen = tunnel->hlen + sizeof(struct iphdr); in ipip6_tunnel_change_mtu() local
1325 if (new_mtu < IPV6_MIN_MTU || new_mtu > 0xFFF8 - t_hlen) in ipip6_tunnel_change_mtu()
1359 int t_hlen = tunnel->hlen + sizeof(struct iphdr); in ipip6_tunnel_setup() local
1365 dev->hard_header_len = LL_MAX_HEADER + t_hlen; in ipip6_tunnel_setup()
1366 dev->mtu = ETH_DATA_LEN - t_hlen; in ipip6_tunnel_setup()
/linux-4.4.14/net/ipv4/
Dip_tunnel.c369 int t_hlen = tunnel->hlen + sizeof(struct iphdr); in ip_tunnel_bind_dev() local
400 dev->needed_headroom = t_hlen + hlen; in ip_tunnel_bind_dev()
401 mtu -= (dev->hard_header_len + t_hlen); in ip_tunnel_bind_dev()
954 int t_hlen = tunnel->hlen + sizeof(struct iphdr); in __ip_tunnel_change_mtu() local
955 int max_mtu = 0xFFF8 - dev->hard_header_len - t_hlen; in __ip_tunnel_change_mtu()
Dip_gre.c837 int t_hlen; in __gre_tunnel_init() local
845 t_hlen = tunnel->hlen + sizeof(struct iphdr); in __gre_tunnel_init()
847 dev->needed_headroom = LL_MAX_HEADER + t_hlen + 4; in __gre_tunnel_init()
848 dev->mtu = ETH_DATA_LEN - t_hlen - 4; in __gre_tunnel_init()