summaryrefslogtreecommitdiffstats
path: root/route.h
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2008-08-05 04:44:31 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2008-08-05 04:44:31 +0000
commitf77c60d3d6a7567eb82d5856921b13eefef747b7 (patch)
treec3e0d0a44074bca5c4df15f28c4978ea00957f81 /route.h
parent36ee894646a8898368c2311a140cef7cd25c4b07 (diff)
downloadopenvpn-f77c60d3d6a7567eb82d5856921b13eefef747b7.tar.gz
openvpn-f77c60d3d6a7567eb82d5856921b13eefef747b7.tar.xz
openvpn-f77c60d3d6a7567eb82d5856921b13eefef747b7.zip
Added additional warnings to flag common gotchas:
* Warn when ethernet bridging that the IP address of the bridge adapter is probably not the same address that the LAN adapter was set to previously. * When running as a server, warn if the LAN network address is the all-popular 192.168.[0|1].x, since this condition commonly leads to subnet conflicts down the road. * Primarily on the client, check for subnet conflicts between the local LAN and the VPN subnet. Added a 'netmask' parameter to get_default_gateway, to return the netmask of the adapter containing the default gateway. Only implemented on Windows so far. Other platforms will return 255.255.255.0. Currently the netmask information is only used to warn about subnet conflicts. git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3179 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'route.h')
-rw-r--r--route.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/route.h b/route.h
index 1a929bd..b5ed18f 100644
--- a/route.h
+++ b/route.h
@@ -156,6 +156,8 @@ void setenv_routes (struct env_set *es, const struct route_list *rl);
bool is_special_addr (const char *addr_str);
+bool get_default_gateway (in_addr_t *ip, in_addr_t *netmask);
+
#if AUTO_USERID
bool get_default_gateway_mac_addr (unsigned char *macaddr);
#endif