summaryrefslogtreecommitdiffstats
path: root/sys/dev/ed
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2001-11-01 17:10:52 +0000
committerluigi <luigi@FreeBSD.org>2001-11-01 17:10:52 +0000
commitf10c64732a2a88da697e0976c26f7168265a5fbb (patch)
tree5d15bd628f51def058599e49ae3d14f04b9544df /sys/dev/ed
parentbb00b46d38fb851de12e9e24bbe8afd22cf38b37 (diff)
downloadFreeBSD-src-f10c64732a2a88da697e0976c26f7168265a5fbb.zip
FreeBSD-src-f10c64732a2a88da697e0976c26f7168265a5fbb.tar.gz
Always compile in bridge hooks, or this code will not work (efficiently) with
the loadable bridge module.
Diffstat (limited to 'sys/dev/ed')
-rw-r--r--sys/dev/ed/if_ed.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/sys/dev/ed/if_ed.c b/sys/dev/ed/if_ed.c
index 9db8eb3..3d9714c 100644
--- a/sys/dev/ed/if_ed.c
+++ b/sys/dev/ed/if_ed.c
@@ -67,9 +67,7 @@
#include <net/bpf.h>
#include "opt_bdg.h"
-#ifdef BRIDGE
#include <net/bridge.h>
-#endif
#include <machine/md_var.h>
@@ -2708,7 +2706,6 @@ ed_get_packet(sc, buf, len)
m->m_data += 2;
eh = mtod(m, struct ether_header *);
-#ifdef BRIDGE
/*
* Don't read in the entire packet if we know we're going to drop it
* and no bpf is active.
@@ -2727,11 +2724,10 @@ ed_get_packet(sc, buf, len)
ed_ring_copy(sc, buf + ETHER_HDR_LEN,
(char *)(eh + 1), len - ETHER_HDR_LEN);
} else
-#endif
- /*
- * Get packet, including link layer address, from interface.
- */
- ed_ring_copy(sc, buf, (char *)eh, len);
+ /*
+ * Get packet, including link layer address, from interface.
+ */
+ ed_ring_copy(sc, buf, (char *)eh, len);
/*
* Remove link layer address.
OpenPOWER on IntegriCloud