From 0678d3bf69116af58b00fbc64bd4185acb4d5c37 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 19 Jul 2020 13:43:39 +0200 Subject: [PATCH] pppd: Fix the default value for ipv6cp-accept-local to false The ipv6cp-accept-local option was supposed to enable it, but it is already enabled by default, with no way to disable it. For coherency with IPv4 and IPX, this disables ipv6cp-accept-local by default, and the option can be used to enable it. This also enables it automatically when the local id is not specified, in coherency with IPv4 and IPX, and as the documentation was saying. Signed-off-by: Samuel Thibault --- pppd/ipv6cp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pppd/ipv6cp.c b/pppd/ipv6cp.c index bda91e9..47e3422 100644 --- a/pppd/ipv6cp.c +++ b/pppd/ipv6cp.c @@ -443,7 +443,7 @@ ipv6cp_init(unit) memset(wo, 0, sizeof(*wo)); memset(ao, 0, sizeof(*ao)); - wo->accept_local = 1; + wo->accept_local = 0; wo->neg_ifaceid = 1; ao->neg_ifaceid = 1; @@ -544,6 +544,7 @@ ipv6cp_resetci(f) wo->req_ifaceid = wo->neg_ifaceid && ipv6cp_allowoptions[f->unit].neg_ifaceid; if (!wo->opt_local) { + wo->accept_local = 1; eui64_magic_nz(wo->ourid); } -- 2.39.2