summaryrefslogtreecommitdiffstats
path: root/forward.c
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2011-08-24 13:06:39 +0200
committerDavid Sommerseth <davids@redhat.com>2011-08-24 13:06:39 +0200
commit20fc33707eab708dfd7e8ffcf2eea0f8362b10b3 (patch)
tree7f60234df8fc0e073cf40ea25361d1e3f35bed50 /forward.c
parent3b75dec3e32e7d838ed56be5667d1cf3ac4cef18 (diff)
parent576dc96ca1ef1badb651e05ac694f07c91e02518 (diff)
downloadopenvpn-20fc33707eab708dfd7e8ffcf2eea0f8362b10b3.tar.gz
openvpn-20fc33707eab708dfd7e8ffcf2eea0f8362b10b3.tar.xz
openvpn-20fc33707eab708dfd7e8ffcf2eea0f8362b10b3.zip
Merge branch 'svn-merger'
Diffstat (limited to 'forward.c')
-rw-r--r--forward.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/forward.c b/forward.c
index b43c1c0..4592cfc 100644
--- a/forward.c
+++ b/forward.c
@@ -1006,7 +1006,7 @@ process_ipv4_header (struct context *c, unsigned int flags, struct buffer *buf)
if (!c->options.passtos)
flags &= ~PIPV4_PASSTOS;
#endif
- if (!c->options.route_gateway_via_dhcp || !route_list_default_gateway_needed (c->c1.route_list))
+ if (!c->options.route_gateway_via_dhcp || !route_list_vpn_gateway_needed (c->c1.route_list))
flags &= ~PIPV4_EXTRACT_DHCP_ROUTER;
if (buf->len > 0)
@@ -1047,7 +1047,7 @@ process_ipv4_header (struct context *c, unsigned int flags, struct buffer *buf)
{
const in_addr_t dhcp_router = dhcp_extract_router_msg (&ipbuf);
if (dhcp_router)
- route_list_add_default_gateway (c->c1.route_list, c->c2.es, dhcp_router);
+ route_list_add_vpn_gateway (c->c1.route_list, c->c2.es, dhcp_router);
}
}
}