aboutsummaryrefslogtreecommitdiff
path: root/sys/net/ethernet.h
diff options
context:
space:
mode:
authorArchie Cobbs <archie@FreeBSD.org>2000-07-13 22:54:34 +0000
committerArchie Cobbs <archie@FreeBSD.org>2000-07-13 22:54:34 +0000
commit21b8ebd926583116aa2cfe13371539035c4c8249 (patch)
tree9138788c579d4f5d51cd1a679899f325a789cb7e /sys/net/ethernet.h
parent4a19005c4897cb2bddd9f1d0a184e503c15e23bf (diff)
downloadsrc-21b8ebd926583116aa2cfe13371539035c4c8249.tar.gz
src-21b8ebd926583116aa2cfe13371539035c4c8249.zip
Make all Ethernet drivers attach using ether_ifattach() and detach using
ether_ifdetach(). The former consolidates the operations of if_attach(), ng_ether_attach(), and bpfattach(). The latter consolidates the corresponding detach operations. Reviewed by: julian, freebsd-net
Notes
Notes: svn path=/head/; revision=63090
Diffstat (limited to 'sys/net/ethernet.h')
-rw-r--r--sys/net/ethernet.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/net/ethernet.h b/sys/net/ethernet.h
index 619a2e9b6f24..6d1c82e19fbf 100644
--- a/sys/net/ethernet.h
+++ b/sys/net/ethernet.h
@@ -82,6 +82,12 @@ struct ether_addr {
#ifdef _KERNEL
+/*
+ * For device drivers to specify whether they support BPF or not
+ */
+#define ETHER_BPF_UNSUPPORTED 0
+#define ETHER_BPF_SUPPORTED 1
+
struct ifnet;
struct mbuf;