]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/sys-solaris.c
pppd: Add replacedefaultroute option (#200)
[ppp.git] / pppd / sys-solaris.c
index 7e3a7e96debdfe52bff51c58cdb93b756060d34e..24c3776eb111eaaaf5e69fecf45e4c5a8af12079 100644 (file)
@@ -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