diff options
author | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2005-12-22 18:55:49 +0000 |
---|---|---|
committer | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2005-12-22 18:55:49 +0000 |
commit | 6215931bffed74b6e02062f28b0f22f4090da727 (patch) | |
tree | 60f1d8a6de1c759f13838773816992f35fc5e1d6 /route.h | |
parent | --ip-win32 adaptive is now the default. (diff) | |
download | openvpn-6215931bffed74b6e02062f28b0f22f4090da727.tar.xz |
Added new option --route-method adaptive (Win32)
which tries IP helper API first, then falls back to
route.exe.
Made --route-method adaptive the default.
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@858 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'route.h')
-rw-r--r-- | route.h | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -38,15 +38,16 @@ /* * Windows route methods */ -#define ROUTE_METHOD_IPAPI 0 /* use IP helper API */ -#define ROUTE_METHOD_EXE 1 /* use route.exe */ -#define ROUTE_METHOD_MASK 1 +#define ROUTE_METHOD_ADAPTIVE 0 /* try IP helper first then route.exe */ +#define ROUTE_METHOD_IPAPI 1 /* use IP helper API */ +#define ROUTE_METHOD_EXE 2 /* use route.exe */ +#define ROUTE_METHOD_MASK 3 #endif /* * Route add flags (must stay clear of ROUTE_METHOD bits) */ -#define ROUTE_DELETE_FIRST 2 +#define ROUTE_DELETE_FIRST 4 struct route_bypass { |