]> git.ozlabs.org Git - ppp.git/commitdiff
ipv6cp: Fix ipv6cp-use-persistent option when remote address is specified (#246)
authorpali <7141871+pali@users.noreply.github.com>
Tue, 26 Jan 2021 02:58:45 +0000 (03:58 +0100)
committerGitHub <noreply@github.com>
Tue, 26 Jan 2021 02:58:45 +0000 (13:58 +1100)
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 <pali@kernel.org>
pppd/ipv6cp.c

index ba7bee55da86c312e49e84ca8014cc1b7d12736a..d80ae216814e9017e65e629aaf15d038d61e4c39 100644 (file)
@@ -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
      */
      * 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
 
        /* 
         * On systems where there are no Ethernet interfaces used, there