summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-07-01 15:07:08 +0000
committerpeter <peter@FreeBSD.org>1999-07-01 15:07:08 +0000
commit165471c200f531c2528a16b6581c3b6e5bbf62b0 (patch)
tree93030bc9a38b72f514d2abf5c8d010415b451434
parentf2e5b7463824ca1a7d84189daa1f4b73ae53189b (diff)
downloadFreeBSD-src-165471c200f531c2528a16b6581c3b6e5bbf62b0.zip
FreeBSD-src-165471c200f531c2528a16b6581c3b6e5bbf62b0.tar.gz
Fix two easy warnings when using BRIDGE without IPFIREWALL.
-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