]> git.ozlabs.org Git - ppp.git/blobdiff - ultrix/if_ppp.c
add line to /etc/minor_perm; compile with -O
[ppp.git] / ultrix / if_ppp.c
index 9bfd22dae171a1b434662209e045d824ae85b4cf..2c8316ee2e0b6cda9b2ce39b428a7952dd68099c 100644 (file)
@@ -72,7 +72,7 @@
  * Robert Olsson <robert@robur.slu.se> and Paul Mackerras.
  */
 
-/* $Id: if_ppp.c,v 1.5 1994/12/13 03:24:47 paulus Exp $ */
+/* $Id: if_ppp.c,v 1.7 1995/05/19 04:37:42 paulus Exp $ */
 /* from if_sl.c,v 1.11 84/10/04 12:54:47 rick Exp */
 
 #include "ppp.h"
@@ -169,7 +169,9 @@ static u_short interactive_ports[8] = {
 extern struct compressor ppp_bsd_compress;
 
 struct compressor *ppp_compressors[] = {
+#if DO_BSD_COMPRESS
     &ppp_bsd_compress,
+#endif
     NULL
 };
 #endif /* PPP_COMPRESS */
@@ -350,7 +352,7 @@ pppioctl(sc, cmd, data, flag)
        if (!suser())
            return EPERM;
        mtu = *(int *) data;
-       if (mtu < PPP_MRU || mtu > PPP_MAXMRU)
+       if (mtu <= 0 || mtu > PPP_MAXMRU)
            return EINVAL;
        s = splimp();
        sc->sc_if.if_mtu = mtu;
@@ -996,7 +998,7 @@ ppp_ccp(sc, m, rcvd)
                if (sc->sc_xc_state != NULL
                    && (*sc->sc_xcomp->comp_init)
                        (sc->sc_xc_state, dp + CCP_HDRLEN, slen - CCP_HDRLEN,
-                        sc->sc_if.if_unit, sc->sc_flags & SC_DEBUG)) {
+                        sc->sc_if.if_unit, 0, sc->sc_flags & SC_DEBUG)) {
                    s = splimp();
                    sc->sc_flags |= SC_COMP_RUN;
                    splx(s);