Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Fix kernel builds if ppp interface but no bpf filter...
details: https://anonhg.NetBSD.org/src/rev/e12d980d976b
branches: trunk
changeset: 473199:e12d980d976b
user: tron <tron%NetBSD.org@localhost>
date: Mon May 24 20:12:10 1999 +0000
description:
Fix kernel builds if ppp interface but no bpf filters are configured.
Patch supplied by Takahiro Kambe in PR kern/7639, also fixes PR kern/7632
by Bjoern Labitzke.
diffstat:
sys/net/ppp_tty.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r f71eacaaffce -r e12d980d976b sys/net/ppp_tty.c
--- a/sys/net/ppp_tty.c Mon May 24 20:11:58 1999 +0000
+++ b/sys/net/ppp_tty.c Mon May 24 20:12:10 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ppp_tty.c,v 1.16 1999/05/11 02:18:52 thorpej Exp $ */
+/* $NetBSD: ppp_tty.c,v 1.17 1999/05/24 20:12:10 tron Exp $ */
/* Id: ppp_tty.c,v 1.3 1996/07/01 01:04:11 paulus Exp */
/*
@@ -261,8 +261,10 @@
{
int s;
+#if NBPFILTER > 0
/* Change DLT to back none. */
bpf_change_type(&sc->sc_bpf, DLT_NULL, 0);
+#endif
s = spltty();
if (sc->sc_outm) {
Home |
Main Index |
Thread Index |
Old Index