]> git.ozlabs.org Git - ppp.git/commit
pppd: Fix IPv6 default route code for Solaris
authorJames Carlson <carlsonj@workingcode.com>
Tue, 31 Dec 2019 00:18:48 +0000 (11:18 +1100)
committerPaul Mackerras <paulus@ozlabs.org>
Tue, 31 Dec 2019 01:29:30 +0000 (12:29 +1100)
commita1e950a04bcd9b19be22c19aa3bdaa66d9538701
treea549a0e51f83bb83099a1bc81bee4e29b7191bec
parentca5e61b3db021dcfd48e36374a80cf2a3b997bb9
pppd: Fix IPv6 default route code for Solaris

Commit 388597ee ("pppd: Add defaultroute6 and related options") added
code to pppd/sys-solaris.c which only works on Linux.  Solaris doesn't
allow the use of the SICORT* family of ioctls for IPv6.  They're legacy
IPv4 only.  Routing sockets are much more flexible than the ioctls.
This rewrites the Solaris code to use a routing socket to set the
default route.

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
pppd/sys-solaris.c