From: pali <7141871+pali@users.noreply.github.com> Date: Tue, 26 Jan 2021 02:58:45 +0000 (+0100) Subject: ipv6cp: Fix ipv6cp-use-persistent option when remote address is specified (#246) X-Git-Tag: ppp-2.5.0~89 X-Git-Url: https://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=6891c82b8987f08baa9a16a2a0ae93b511323ea5 ipv6cp: Fix ipv6cp-use-persistent option when remote address is specified (#246) 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 --- 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