summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/net/bridge.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/net/bridge.c b/sys/net/bridge.c
index 9878788..645425a 100644
--- a/sys/net/bridge.c
+++ b/sys/net/bridge.c
@@ -460,13 +460,14 @@ bdg_forward (struct mbuf **m0, struct ifnet *dst)
{
struct ifnet *src = (*m0)->m_pkthdr.rcvif; /* could be NULL in output */
struct ifnet *ifp ;
- struct ip *ip;
int error=0, s ;
int once = 0; /* execute the loop only once */
int canfree = 1 ; /* can free the buf at the end */
struct mbuf *m ;
-
+#ifdef IPFIREWALL
+ struct ip *ip;
struct ether_header *eh = mtod(*m0, struct ether_header *); /* XXX */
+#endif
if (dst == BDG_DROP) { /* this should not happen */
printf("xx bdg_forward for BDG_DROP)\n");
OpenPOWER on IntegriCloud