]> git.ozlabs.org Git - ppp.git/commit - pppd/ipv6cp.c
ipv6cp: Fix ipv6cp-use-persistent option (#239)
authorpali <7141871+pali@users.noreply.github.com>
Tue, 26 Jan 2021 02:57:38 +0000 (03:57 +0100)
committerGitHub <noreply@github.com>
Tue, 26 Jan 2021 02:57:38 +0000 (13:57 +1100)
commit0615e2adaa961cae00a9a361494b04f92ce34c4f
treee186dac4b844c8490c5989ec8bf8bd0162b242e4
parente8cd41673651e35447020bf9d98c5d6d4acd9212
ipv6cp: Fix ipv6cp-use-persistent option (#239)

There is incorrect logic in ether_to_eui64() function. Persistent id cannot
be found when both sources of persistent id fails, not just one.

This fixes ipv6cp-use-persistent option for non-ethernet PPP connections.

Fixes: 952cfa5acc41ad4ceee160420a188a388bb340cf
Signed-off-by: Pali Rohár <pali@kernel.org>
pppd/ipv6cp.c