c->options.dev_type,
c->options.dev_node,
&gc);
- do_ifconfig(c->c1.tuntap, guess, TUN_MTU_SIZE(&c->c2.frame), c->c2.es,
+ do_ifconfig(c->c1.tuntap, guess, c->c2.frame.tun_mtu, c->c2.es,
&c->net_ctx);
}
&& ifconfig_order() == IFCONFIG_AFTER_TUN_OPEN)
{
do_ifconfig(c->c1.tuntap, c->c1.tuntap->actual_name,
- TUN_MTU_SIZE(&c->c2.frame), c->c2.es, &c->net_ctx);
+ c->c2.frame.tun_mtu, c->c2.es, &c->net_ctx);
}
/* run the up script */
c->c1.tuntap->adapter_index,
#endif
dev_type_string(c->options.dev, c->options.dev_type),
- TUN_MTU_SIZE(&c->c2.frame),
+ c->c2.frame.tun_mtu,
print_in_addr_t(c->c1.tuntap->local, IA_EMPTY_IF_UNDEF, &gc),
print_in_addr_t(c->c1.tuntap->remote_netmask, IA_EMPTY_IF_UNDEF, &gc),
"init",
c->c1.tuntap->adapter_index,
#endif
dev_type_string(c->options.dev, c->options.dev_type),
- TUN_MTU_SIZE(&c->c2.frame),
+ c->c2.frame.tun_mtu,
print_in_addr_t(c->c1.tuntap->local, IA_EMPTY_IF_UNDEF, &gc),
print_in_addr_t(c->c1.tuntap->remote_netmask, IA_EMPTY_IF_UNDEF, &gc),
"restart",
adapter_index,
#endif
NULL,
- TUN_MTU_SIZE(&c->c2.frame),
+ c->c2.frame.tun_mtu,
print_in_addr_t(local, IA_EMPTY_IF_UNDEF, &gc),
print_in_addr_t(remote_netmask, IA_EMPTY_IF_UNDEF, &gc),
"init",
adapter_index,
#endif
NULL,
- TUN_MTU_SIZE(&c->c2.frame),
+ c->c2.frame.tun_mtu,
print_in_addr_t(local, IA_EMPTY_IF_UNDEF, &gc),
print_in_addr_t(remote_netmask, IA_EMPTY_IF_UNDEF, &gc),
"init",
adapter_index,
#endif
NULL,
- TUN_MTU_SIZE(&c->c2.frame),
+ c->c2.frame.tun_mtu,
print_in_addr_t(local, IA_EMPTY_IF_UNDEF, &gc),
print_in_addr_t(remote_netmask, IA_EMPTY_IF_UNDEF, &gc),
"restart",
{
msg(M_WARN, "OPTIONS IMPORT: WARNING: peer-id set, but link-mtu"
" fixed by config - reducing tun-mtu to %d, expect"
- " MTU problems", TUN_MTU_SIZE(&c->c2.frame));
+ " MTU problems", c->c2.frame.tun_mtu);
}
}
#ifdef ENABLE_FRAGMENT
if ((c->options.ce.mssfix || c->options.ce.fragment)
- && TUN_MTU_SIZE(&c->c2.frame_fragment) != ETHERNET_MTU)
+ && c->c2.frame.tun_mtu != ETHERNET_MTU)
{
msg(M_WARN,
"WARNING: normally if you use --mssfix and/or --fragment, you should also set --tun-mtu %d (currently it is %d)",
- ETHERNET_MTU, TUN_MTU_SIZE(&c->c2.frame_fragment));
+ ETHERNET_MTU, c->c2.frame.tun_mtu);
}
#endif
}