]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/ipcp.c
Allow proxyarp and defaultroute by default.
[ppp.git] / pppd / ipcp.c
index 4e1f52f5c9ad6aeed3a8c803219d0d121248b028..2566fc82e0ddc1663bbc300a15c94bae16969399 100644 (file)
@@ -18,7 +18,7 @@
  */
 
 #ifndef lint
-static char rcsid[] = "$Id: ipcp.c,v 1.18 1995/05/19 03:18:08 paulus Exp $";
+static char rcsid[] = "$Id: ipcp.c,v 1.21 1995/08/17 11:57:12 paulus Exp $";
 #endif
 
 /*
@@ -149,6 +149,13 @@ ipcp_init(unit)
     ao->neg_vj = 1;
     ao->maxslotindex = MAX_STATES - 1;
     ao->cflag = 1;
+
+    /*
+     * XXX These control whether the user may use the proxyarp
+     * and defaultroute options.
+     */
+    ao->proxy_arp = 1;
+    ao->default_route = 1;
 }
 
 
@@ -581,10 +588,9 @@ ipcp_nakci(f, p, len)
            if (ciaddr1 && go->accept_local)
                try.ouraddr = ciaddr1;
            if (try.ouraddr != 0)
-               no.neg_addr = 1;
+               try.neg_addr = 1;
+           no.neg_addr = 1;
            break;
-       default:
-           goto bad;
        }
        p = next;
     }