X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fsys-solaris.c;fp=pppd%2Fsys-solaris.c;h=24c3776eb111eaaaf5e69fecf45e4c5a8af12079;hb=d0ccb87156c295da4f679f35936a976cea46d38c;hp=7e3a7e96debdfe52bff51c58cdb93b756060d34e;hpb=965e7fd1c49547535097d3ee98b60f73b7152d38;p=ppp.git diff --git a/pppd/sys-solaris.c b/pppd/sys-solaris.c index 7e3a7e9..24c3776 100644 --- a/pppd/sys-solaris.c +++ b/pppd/sys-solaris.c @@ -2038,10 +2038,15 @@ cifaddr(int u, u_int32_t o, u_int32_t h) * sifdefaultroute - assign a default route through the address given. */ int -sifdefaultroute(int u, u_int32_t l, u_int32_t g) +sifdefaultroute(int u, u_int32_t l, u_int32_t g, bool replace) { struct rtentry rt; + if (replace) { + error("Replacing the default route is not implemented on Solaris yet"); + return 0; + } + #if defined(__USLC__) g = l; /* use the local address as gateway */ #endif