From 6891c82b8987f08baa9a16a2a0ae93b511323ea5 Mon Sep 17 00:00:00 2001 From: pali <7141871+pali@users.noreply.github.com> Date: Tue, 26 Jan 2021 03:58:45 +0100 Subject: [PATCH] ipv6cp: Fix ipv6cp-use-persistent option when remote address is specified (#246) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Option ipv6cp-use-persistent affects only local interface identifier (local link-local address). It does not affects remote peer interface identifier (and remote link-local address) therefore ipv6cp-use-persistent option should not depend on remote address. Signed-off-by: Pali Rohár --- pppd/ipv6cp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pppd/ipv6cp.c b/pppd/ipv6cp.c index ba7bee5..d80ae21 100644 --- a/pppd/ipv6cp.c +++ b/pppd/ipv6cp.c @@ -1107,7 +1107,7 @@ ipv6_check_options(void) * Persistent link-local id is only used when user has not explicitly * configure/hard-code the id */ - if ((wo->use_persistent) && (!wo->opt_local) && (!wo->opt_remote)) { + if ((wo->use_persistent) && (!wo->opt_local)) { /* * On systems where there are no Ethernet interfaces used, there -- 2.39.2