diff options
-rw-r--r-- | sys/net/if_ppp.c | 8 | ||||
-rw-r--r-- | sys/net/ppp_tty.c | 10 |
2 files changed, 12 insertions, 6 deletions
diff --git a/sys/net/if_ppp.c b/sys/net/if_ppp.c index 22335d5..3cda41f 100644 --- a/sys/net/if_ppp.c +++ b/sys/net/if_ppp.c @@ -69,7 +69,7 @@ * Paul Mackerras (paulus@cs.anu.edu.au). */ -/* $Id: if_ppp.c,v 1.47 1997/10/18 00:46:09 peter Exp $ */ +/* $Id: if_ppp.c,v 1.48 1997/10/18 00:56:22 peter Exp $ */ /* from if_sl.c,v 1.11 84/10/04 12:54:47 rick Exp */ /* from NetBSD: if_ppp.c,v 1.15.2.2 1994/07/28 05:17:58 cgd Exp */ @@ -81,9 +81,11 @@ #define VJC #define PPP_COMPRESS +#ifdef PPP_FILTER #include "bpfilter.h" -#if NBPFILTER > 0 -#define PPP_FILTER +#if NBPFILTER == 0 +#error "PPP_FILTER requires bpf" +#endif #endif #include <sys/param.h> diff --git a/sys/net/ppp_tty.c b/sys/net/ppp_tty.c index 200019f..f8093c0 100644 --- a/sys/net/ppp_tty.c +++ b/sys/net/ppp_tty.c @@ -70,17 +70,21 @@ * Paul Mackerras (paulus@cs.anu.edu.au). */ -/* $Id: ppp_tty.c,v 1.25 1997/10/10 11:57:43 peter Exp $ */ +/* $Id: ppp_tty.c,v 1.26 1997/10/18 00:56:23 peter Exp $ */ #include "ppp.h" #if NPPP > 0 +#include "opt_ppp.h" + #define VJC #define PPP_COMPRESS +#ifdef PPP_FILTER #include "bpfilter.h" -#if NBPFILTER > 0 -#define PPP_FILTER +#if NBPFILTER == 0 +#error "PPP_FILTER requires bpf" +#endif #endif |