]> git.ozlabs.org Git - ppp.git/commit
pppd: Fix ether_to_eui64() to prefer devnam ether interface (#206)
authorpali <7141871+pali@users.noreply.github.com>
Fri, 1 Jan 2021 08:58:02 +0000 (09:58 +0100)
committerGitHub <noreply@github.com>
Fri, 1 Jan 2021 08:58:02 +0000 (19:58 +1100)
commitf83cacece31325699c72959d0a0099aae8976f3b
tree9f247ac4b50b1066c76dbaa6a70917f64d843543
parent4087ec556b1ccee15d8e97153f3800b79982f8ba
pppd: Fix ether_to_eui64() to prefer devnam ether interface (#206)

In case of PPPoE connection, devnam is ethernet interface. So in this case
calculate EUI-64 IPV6CP identifier from the PPPoE ethernet interface
instead from the first ethernet interface in the system.

This would ensure that each PPPoE connection would have unique IPv6 link
local address calculated from the interface MAC address on which is PPPoE
going to be established.

Currently IPv6 link local address is always calculated from the MAC address
of the first ethernet interface and therefore all active PPPoE connections
have by default same (non unique) IPv6 link local address.

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