X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Flcp.c;h=25815187e9a6937e63f4334224b3994992a009d7;hp=cd0f6f85eb52c61b0c20c15d6af3b052b8ecd44e;hb=01348355a72c10aeb6f9c3ba02ddd43ee3a995e3;hpb=4b3147e69bffe5b8b7aa2af95e2abfcec36b4880 diff --git a/pppd/lcp.c b/pppd/lcp.c index cd0f6f8..2581518 100644 --- a/pppd/lcp.c +++ b/pppd/lcp.c @@ -18,7 +18,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: lcp.c,v 1.5 1994/05/24 11:23:13 paulus Exp $"; +static char rcsid[] = "$Id: lcp.c,v 1.8 1994/05/30 02:38:49 paulus Exp $"; #endif /* @@ -26,19 +26,15 @@ static char rcsid[] = "$Id: lcp.c,v 1.5 1994/05/24 11:23:13 paulus Exp $"; */ #include +#include #include #include #include #include #include #include - -#include -#include #include -#include - #include "pppd.h" #include "ppp.h" #include "fsm.h" @@ -48,6 +44,10 @@ static char rcsid[] = "$Id: lcp.c,v 1.5 1994/05/24 11:23:13 paulus Exp $"; #include "upap.h" #include "ipcp.h" +#ifdef _linux_ /* Needs ppp ioctls */ +#include +#endif + /* global vars */ fsm lcp_fsm[NPPP]; /* LCP fsm structure (global)*/ lcp_options lcp_wantoptions[NPPP]; /* Options that we want to request */ @@ -1271,8 +1271,13 @@ lcp_up(f) ppp_send_config(f->unit, MIN(ao->mru, (ho->neg_mru? ho->mru: MTU)), (ho->neg_asyncmap? ho->asyncmap: 0xffffffff), ho->neg_pcompression, ho->neg_accompression); + /* + * If the asyncmap hasn't been negotiated, we really should + * set the receive asyncmap to ffffffff, but we set it to 0 + * for backwards contemptibility. + */ ppp_recv_config(f->unit, (go->neg_mru? MAX(wo->mru, go->mru): MTU), - (go->neg_asyncmap? go->asyncmap: 0xffffffff), + (go->neg_asyncmap? go->asyncmap: 0x00000000), go->neg_pcompression, go->neg_accompression); if (ho->neg_mru)