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

/linux-4.1.27/net/ipv6/
H A Dsit.c825 int t_hlen = tunnel->hlen + sizeof(struct iphdr); ipip6_tunnel_xmit() local
922 mtu = dst_mtu(&rt->dst) - t_hlen; ipip6_tunnel_xmit()
957 max_headroom = LL_RESERVED_SPACE(tdev) + t_hlen; ipip6_tunnel_xmit()
1072 int t_hlen = tunnel->hlen + sizeof(struct iphdr); ipip6_tunnel_bind_dev() local
1075 dev->mtu = tdev->mtu - t_hlen; ipip6_tunnel_bind_dev()
1323 int t_hlen = tunnel->hlen + sizeof(struct iphdr); ipip6_tunnel_change_mtu() local
1325 if (new_mtu < IPV6_MIN_MTU || new_mtu > 0xFFF8 - t_hlen) ipip6_tunnel_change_mtu()
1359 int t_hlen = tunnel->hlen + sizeof(struct iphdr); ipip6_tunnel_setup() local
1365 dev->hard_header_len = LL_MAX_HEADER + t_hlen; ipip6_tunnel_setup()
1366 dev->mtu = ETH_DATA_LEN - t_hlen; ipip6_tunnel_setup()
/linux-4.1.27/net/ipv4/
H A Dip_gre.c477 int t_hlen; __gre_tunnel_init() local
485 t_hlen = tunnel->hlen + sizeof(struct iphdr); __gre_tunnel_init()
487 dev->needed_headroom = LL_MAX_HEADER + t_hlen + 4; __gre_tunnel_init()
488 dev->mtu = ETH_DATA_LEN - t_hlen - 4; __gre_tunnel_init()
H A Dip_tunnel.c362 int t_hlen = tunnel->hlen + sizeof(struct iphdr); ip_tunnel_bind_dev() local
393 dev->needed_headroom = t_hlen + hlen; ip_tunnel_bind_dev()
394 mtu -= (dev->hard_header_len + t_hlen); ip_tunnel_bind_dev()
942 int t_hlen = tunnel->hlen + sizeof(struct iphdr); ip_tunnel_change_mtu() local
945 new_mtu > 0xFFF8 - dev->hard_header_len - t_hlen) ip_tunnel_change_mtu()

Completed in 75 milliseconds