aboutsummaryrefslogtreecommitdiff
path: root/src/openvpn/options.c
diff options
context:
space:
mode:
authorAntonio Quartulli2019-07-15 16:46:09 +0200
committerGert Doering2019-07-16 20:26:46 +0200
commitc454b21e7ce458ce6f5bcaf6c313ab3ba3dd5baf (patch)
treed1912179d3d60b606e1b23b99d91611a2878771c /src/openvpn/options.c
parent0740e079a1c094627a69b8b5959c6be56e15d9f6 (diff)
downloadopenvpn-c454b21e7ce458ce6f5bcaf6c313ab3ba3dd5baf.zip
openvpn-c454b21e7ce458ce6f5bcaf6c313ab3ba3dd5baf.tar.gz
route.c: use sitnl to implement get_default_gateway_ipv6()
get_default_gateway_ipv6() has always been implemented using netlink, however, now that we have sitnl, we can re-use the latter and get rid of the netlink code from route.c. Signed-off-by: Antonio Quartulli <antonio@openvpn.net> Acked-by: Arne Schwabe <arne@rfc2549.org> Acked-by: Gert Doering <gert@greenie.muc.de> Message-Id: <20190715144609.19616-1-a@unstable.cc> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg18667.html Signed-off-by: Gert Doering <gert@greenie.muc.de>
Diffstat (limited to 'src/openvpn/options.c')
-rw-r--r--src/openvpn/options.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openvpn/options.c b/src/openvpn/options.c
index a37b714..2d3865a 100644
--- a/src/openvpn/options.c
+++ b/src/openvpn/options.c
@@ -5012,7 +5012,7 @@ add_option(struct options *options,
}
net_ctx_init(NULL, &net_ctx);
get_default_gateway(&rgi, &net_ctx);
- get_default_gateway_ipv6(&rgi6, &remote);
+ get_default_gateway_ipv6(&rgi6, &remote, &net_ctx);
print_default_gateway(M_INFO, &rgi, &rgi6);
openvpn_exit(OPENVPN_EXIT_STATUS_GOOD); /* exit point */
}