diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2005-04-20 19:52:44 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2005-04-20 19:52:44 +0000 |
commit | 472569caed823134f3cdf4b7b1f19c50910c3879 (patch) | |
tree | 47f7fc8ecb225ce29c9fcd2defd292b2af4f2512 /sys/net80211/ieee80211.c | |
parent | f89146cba13d07521aafe77f436a3255fb95e64c (diff) |
send raw 802.11 frames with bpf(4) using the IEEE802_11 or
IEEE802_11_RADIO data link types.
ok canacar@ damien@
Diffstat (limited to 'sys/net80211/ieee80211.c')
-rw-r--r-- | sys/net80211/ieee80211.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211.c b/sys/net80211/ieee80211.c index 20af2f2d2ea..ab2c5a3b9bd 100644 --- a/sys/net80211/ieee80211.c +++ b/sys/net80211/ieee80211.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211.c,v 1.4 2005/02/17 18:28:05 reyk Exp $ */ +/* $OpenBSD: ieee80211.c,v 1.5 2005/04/20 19:52:43 reyk Exp $ */ /* $NetBSD: ieee80211.c,v 1.19 2004/06/06 05:45:29 dyoung Exp $ */ /*- @@ -155,6 +155,9 @@ ieee80211_ifattach(struct ifnet *ifp) #else ether_ifattach(ifp, ic->ic_myaddr); #endif + + ifp->if_output = ieee80211_output; + #if NBPFILTER > 0 BPF_ATTACH(ifp, DLT_IEEE802_11, sizeof(struct ieee80211_frame_addr4), &ic->ic_rawbpf); |