]> git.ozlabs.org Git - ppp.git/commit
Deduplicate ether_to_eui64() implementation (#204)
authorpali <7141871+pali@users.noreply.github.com>
Thu, 31 Dec 2020 22:54:37 +0000 (23:54 +0100)
committerGitHub <noreply@github.com>
Thu, 31 Dec 2020 22:54:37 +0000 (09:54 +1100)
commit0f9bd9807d92d624782fa3bc3d2abfb305edf7ee
treef7e157a4e5dfac3177f964cd048d9ba8059318a7
parentd732b2bbc1920fd6eddc39e4abe8fcd7e0ca4683
Deduplicate ether_to_eui64() implementation (#204)

Now when get_first_ethernet() is implemented for both Linux and Solaris,
implementation of ether_to_eui64() function can use this function
get_first_ethernet() and therefore be system independent.

So change implementation of ether_to_eui64() to use get_first_ethernet()
function and move it from Linux and Solaris files to common ipv6cp.c file
where it is used.

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