Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/net/ipv6/
H A Dip6_gre.c1130 int t_hlen) in ip6gre_tnl_link_config_route() argument
1148 t_hlen; in ip6gre_tnl_link_config_route()
1156 int mtu = rt->dst.dev->mtu - t_hlen; in ip6gre_tnl_link_config_route()
1174 int t_hlen; in ip6gre_calc_hlen() local
1179 t_hlen = tunnel->hlen + sizeof(struct ipv6hdr); in ip6gre_calc_hlen()
1182 tunnel->dev->hard_header_len = LL_MAX_HEADER + t_hlen; in ip6gre_calc_hlen()
1184 tunnel->dev->needed_headroom = LL_MAX_HEADER + t_hlen; in ip6gre_calc_hlen()
1186 return t_hlen; in ip6gre_calc_hlen()
1480 int t_hlen; in ip6gre_tunnel_init_common() local
1500 t_hlen = ip6gre_calc_hlen(tunnel); in ip6gre_tunnel_init_common()
[all …]
H A Dsit.c870 int t_hlen = tunnel->hlen + sizeof(struct iphdr); in ipip6_tunnel_xmit() local
969 mtu = dst_mtu(&rt->dst) - t_hlen; in ipip6_tunnel_xmit()
1004 max_headroom = LL_RESERVED_SPACE(tdev) + t_hlen; in ipip6_tunnel_xmit()
1125 int t_hlen = tunnel->hlen + sizeof(struct iphdr); in ipip6_tunnel_bind_dev() local
1128 mtu = tdev->mtu - t_hlen; in ipip6_tunnel_bind_dev()
1418 int t_hlen = tunnel->hlen + sizeof(struct iphdr); in ipip6_tunnel_setup() local
1426 dev->mtu = ETH_DATA_LEN - t_hlen; in ipip6_tunnel_setup()
1428 dev->max_mtu = IP6_MAX_MTU - t_hlen; in ipip6_tunnel_setup()
H A Dip6_tunnel.c1479 int t_hlen; in ip6_tnl_link_config() local
1506 t_hlen = t->hlen + sizeof(struct ipv6hdr); in ip6_tnl_link_config()
1524 dev->hard_header_len = tdev->hard_header_len + t_hlen; in ip6_tnl_link_config()
1527 mtu = mtu - t_hlen; in ip6_tnl_link_config()
1888 int t_hlen; in ip6_tnl_dev_init_gen() local
1906 t_hlen = t->hlen + sizeof(struct ipv6hdr); in ip6_tnl_dev_init_gen()
1909 dev->hard_header_len = LL_MAX_HEADER + t_hlen; in ip6_tnl_dev_init_gen()
1910 dev->mtu = ETH_DATA_LEN - t_hlen; in ip6_tnl_dev_init_gen()
/OK3568_Linux_fs/kernel/net/ipv4/
H A Dip_tunnel.c286 int t_hlen = tunnel->hlen + sizeof(struct iphdr); in ip_tunnel_bind_dev() local
319 dev->needed_headroom = t_hlen + hlen; in ip_tunnel_bind_dev()
320 mtu -= t_hlen + (dev->type == ARPHRD_ETHER ? dev->hard_header_len : 0); in ip_tunnel_bind_dev()
334 int t_hlen; in ip_tunnel_create() local
348 t_hlen = nt->hlen + sizeof(struct iphdr); in ip_tunnel_create()
350 dev->max_mtu = IP_MAX_MTU - t_hlen; in ip_tunnel_create()
978 int t_hlen = tunnel->hlen + sizeof(struct iphdr); in __ip_tunnel_change_mtu() local
979 int max_mtu = IP_MAX_MTU - t_hlen; in __ip_tunnel_change_mtu()