]> git.ozlabs.org Git - ppp.git/commit
ipv6cp: Fix clearing previous IPv6 LL address in demand mode
authorPali Rohár <pali@kernel.org>
Sat, 9 Jan 2021 13:40:12 +0000 (14:40 +0100)
committerPali Rohár <pali@kernel.org>
Sat, 9 Jan 2021 13:40:12 +0000 (14:40 +0100)
commitf209ccfbaf5165c91bb04a5fdec83b3037b2f21e
tree3d62c1f99f308a8a938067365441362aa25019a0
parent8945d9b7679bb4f83d096db3caae4749e44886d8
ipv6cp: Fix clearing previous IPv6 LL address in demand mode

Previous old IPv6 LL address is stored in the 'wo' structure. In 'go'/'ho'
is stored new address which needs to be assigned on interface.

Without this patch pppd in demand IPv6 mode always let previous IPv6 LL
address on interface and failed on error:

cif6addr: ioctl(SIOCDIFADDR): No such address

Because it tried to remove new address from interface which obviously was
not set.

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