X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=ultrix%2Fif_ppp.c;h=2c8316ee2e0b6cda9b2ce39b428a7952dd68099c;hp=9bfd22dae171a1b434662209e045d824ae85b4cf;hb=0686813db00507d446cedaca6dca96889a3d2f63;hpb=a9bac5e43cdbbd044c71ed5bc7c6657d8f16f1ae diff --git a/ultrix/if_ppp.c b/ultrix/if_ppp.c index 9bfd22d..2c8316e 100644 --- a/ultrix/if_ppp.c +++ b/ultrix/if_ppp.c @@ -72,7 +72,7 @@ * Robert Olsson 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);