void setenv_routes_ipv6(struct env_set *es, const struct route_ipv6_list *rl6);
-bool do_route_ipv4_service(const bool add, const struct route_ipv4 *r,
- const struct tuntap *tt);
-
bool is_special_addr(const char *addr_str);
void get_default_gateway(struct route_gateway_info *rgi,
}
#endif /* if defined(_WIN32) || defined(TARGET_DARWIN) || defined(TARGET_NETBSD) || defined(TARGET_OPENBSD) */
-#if defined(_WIN32)
-void
-do_route_ipv4_service_tun(bool add, const struct tuntap *tt)
-{
- struct route_ipv4 r4;
- CLEAR(r4);
- r4.network = tt->local & tt->remote_netmask;
- r4.netmask = tt->remote_netmask;
- r4.gateway = tt->local;
- r4.metric = 0; /* connected route */
- r4.flags = RT_DEFINED | RT_METRIC_DEFINED;
- do_route_ipv4_service(add, &r4, tt);
-}
-#endif
-
#if defined(TARGET_FREEBSD) || defined(TARGET_DRAGONFLY) \
|| defined(TARGET_NETBSD) || defined(TARGET_OPENBSD)
/* we can't use true subnet mode on tun on all platforms, as that
if (tt->options.msg_channel && tt->wintun)
{
do_address_service(true, AF_INET, tt);
- do_route_ipv4_service_tun(true, tt);
do_dns_service(true, AF_INET, tt);
}
else
{
if (tt->options.msg_channel)
{
- do_route_ipv4_service_tun(false, tt);
do_address_service(false, AF_INET, tt);
do_dns_service(false, AF_INET, tt);
}