summaryrefslogtreecommitdiff
path: root/sys/net/if_bridge.c
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2001-07-27 22:31:48 +0000
committerJason Wright <jason@cvs.openbsd.org>2001-07-27 22:31:48 +0000
commitfaa2a2e508d811eb51aac03ea20a62c8510b0201 (patch)
treea214231109c72266cc9f4424e7acd4eaec3f7eb2 /sys/net/if_bridge.c
parente07d576a30318fa3e3abe325d8f7a20ffacc0135 (diff)
PF_IN/PF_OUT aren't defined if NPF <= 0, deal with it.
Diffstat (limited to 'sys/net/if_bridge.c')
-rw-r--r--sys/net/if_bridge.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/sys/net/if_bridge.c b/sys/net/if_bridge.c
index b237a2cf1db..3b12f7602d4 100644
--- a/sys/net/if_bridge.c
+++ b/sys/net/if_bridge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_bridge.c,v 1.73 2001/07/25 04:59:33 jason Exp $ */
+/* $OpenBSD: if_bridge.c,v 1.74 2001/07/27 22:31:47 jason Exp $ */
/*
* Copyright (c) 1999, 2000 Jason L. Wright (jason@thought.net)
@@ -65,6 +65,11 @@
#if NPF > 0
#include <net/pfvar.h>
+#define BRIDGE_IN PF_IN
+#define BRIDGE_OUT PF_OUT
+#else
+#define BRIDGE_IN 0
+#define BRIDGE_OUT 1
#endif
#if NBPFILTER > 0
@@ -1038,7 +1043,7 @@ bridgeintr_frame(sc, m)
return;
}
- m = bridge_filter(sc, PF_IN, src_if, &eh, m);
+ m = bridge_filter(sc, BRIDGE_IN, src_if, &eh, m);
if (m == NULL)
return;
@@ -1080,7 +1085,7 @@ bridgeintr_frame(sc, m)
m_freem(m);
return;
}
- m = bridge_filter(sc, PF_OUT, dst_if, &eh, m);
+ m = bridge_filter(sc, BRIDGE_OUT, dst_if, &eh, m);
if (m == NULL)
return;
@@ -1320,7 +1325,7 @@ bridge_broadcast(sc, ifp, eh, m)
}
}
- mc = bridge_filter(sc, PF_OUT, dst_if, eh, mc);
+ mc = bridge_filter(sc, BRIDGE_OUT, dst_if, eh, mc);
if (mc == NULL)
continue;