diff options
author | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2008-08-02 08:02:53 +0000 |
---|---|---|
committer | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2008-08-02 08:02:53 +0000 |
commit | 03731db31bfb22fcd0f169c692757826638dcc57 (patch) | |
tree | 09d235b203e521e673f4175491e076f0d894aa16 /route.c | |
parent | Version 2.1_rc9 (diff) | |
download | openvpn-03731db31bfb22fcd0f169c692757826638dcc57.tar.xz |
Added "--server-bridge" (without parameters) to enable
DHCP proxy mode: Configure server mode for ethernet
bridging using a DHCP-proxy, where clients talk to the
OpenVPN server-side DHCP server to receive their IP address
allocation and DNS server addresses.
Added "--route-gateway dhcp", to enable the extraction
of the gateway address from a DHCP negotiation with the
OpenVPN server-side LAN.
Modified client.conf and server.conf to reflect new option
modes.
Incremented version to 2.1_rc9a.
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3164 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'route.c')
-rw-r--r-- | route.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -335,6 +335,16 @@ clear_route_list (struct route_list *rl) CLEAR (*rl); } +void +route_list_add_default_gateway (struct route_list *rl, + struct env_set *es, + const in_addr_t addr) +{ + rl->spec.remote_endpoint = addr; + rl->spec.remote_endpoint_defined = true; + setenv_route_addr (es, "vpn_gateway", rl->spec.remote_endpoint, -1); +} + bool init_route_list (struct route_list *rl, const struct route_option_list *opt, |