X-Git-Url: https://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fipcp.c;h=8e20c525e8379753c8d5116b8075b7617f5f616c;hp=49144056c92600a21af1fed129cac18016458e8c;hb=f2df02f242e23bff6e1ffde848e564aea415550f;hpb=c82ba0523c4c13c415bdd27c2695b90664508cd7 diff --git a/pppd/ipcp.c b/pppd/ipcp.c index 4914405..8e20c52 100644 --- a/pppd/ipcp.c +++ b/pppd/ipcp.c @@ -18,7 +18,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: ipcp.c,v 1.6 1994/05/24 05:57:56 paulus Exp $"; +static char rcsid[] = "$Id: ipcp.c,v 1.9 1994/08/22 00:36:38 paulus Exp $"; #endif /* @@ -31,9 +31,6 @@ static char rcsid[] = "$Id: ipcp.c,v 1.6 1994/05/24 05:57:56 paulus Exp $"; #include #include -#include -#include - #include "pppd.h" #include "ppp.h" #include "fsm.h" @@ -47,7 +44,7 @@ ipcp_options ipcp_allowoptions[NPPP]; /* Options we allow peer to request */ ipcp_options ipcp_hisoptions[NPPP]; /* Options that we ack'd */ extern char ifname[]; -extern char devname[]; +extern char devnam[]; extern int baud_rate; /* local vars */ @@ -493,10 +490,6 @@ ipcp_nakci(f, p, len) len -= cilen; \ INCPTR(2, p); \ GETSHORT(cishort, p); \ - if (cilen == CILEN_VJ) { \ - GETCHAR(cimaxslotindex, p); \ - GETCHAR(cicflag, p); \ - } \ no.neg = 1; \ code \ } @@ -526,6 +519,8 @@ ipcp_nakci(f, p, len) */ NAKCIVJ(CI_COMPRESSTYPE, neg_vj, if (cilen == CILEN_VJ) { + GETCHAR(cimaxslotindex, p); + GETCHAR(cicflag, p); if (cishort == IPCP_VJ_COMP) { try.old_vj = 0; if (cimaxslotindex < go->maxslotindex) @@ -1088,7 +1083,7 @@ ipcp_script(f, script) argv[0] = script; argv[1] = ifname; - argv[2] = devname; + argv[2] = devnam; argv[3] = strspeed; argv[4] = strlocal; argv[5] = strremote;