]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/ipcp.c
don't need if.h or if_ppp.h
[ppp.git] / pppd / ipcp.c
index 49144056c92600a21af1fed129cac18016458e8c..6c9abb15f2be9487516afe27a68523800c5f824d 100644 (file)
@@ -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.8 1994/05/26 06:37:34 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 <sys/types.h>
 #include <sys/socket.h>
 
-#include <net/if.h>
-#include <net/if_ppp.h>
-
 #include "pppd.h"
 #include "ppp.h"
 #include "fsm.h"
@@ -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)