[lkml]   [2001]   [Dec]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH] - 2.4.17 - if_arp.h - Add the Prism2 ARP type
(Please CC: me responses; I'm not subscribed)

Hey, this one-line patch (I diffed it against 2.4.17-rc2) defines the
ARPHRD_IEEE80211_PRISM arp type.

A little background. The prism2 series of wireless ethernet cards are
capable of operating in true promiscious mode, capturing raw 802.11
frames. When it's doing this, the driver prepends a special monitoring
header onto the packet with useful information.

Since the v0.1.6 release of the driver, this was handled via NETLINK
broadcasts.. but that's Bad(tm). Instead, the next version (0.1.14) of
the driver will support raw capture using the PF_PACKET interface, which
means that it'll need its own arp type for libpcap to recognize and
handle the special headers. (without the header, it sends standard
ARPHRD_IEEE80211 frames)

libpcap/ethereal/etc already have dissectors for this special header, so
all that's left is to define a fixed arp type.

So, I humbly submit this patch for inclusion.

Solomon Peachy
I ain't broke, but I'm badly bent. ICQ# 1318344
Patience comes to those who wait.
...It's not "Beanbag Love", it's a "Transanimate Relationship"...
--- linux/include/linux/if_arp.h Wed Dec 19 20:55:17 2001
+++ linux-old/include/linux/if_arp.h Wed Dec 19 20:59:07 2001
@@ -82,6 +82,7 @@
/* 787->799 reserved for fibrechannel media types */
#define ARPHRD_IEEE802_TR 800 /* Magic type ident for TR */
#define ARPHRD_IEEE80211 801 /* IEEE 802.11 */
+#define ARPHRD_IEEE80211_PRISM 802 /* IEEE 802.11 + Prism2 header */

#define ARPHRD_VOID 0xFFFF /* Void type, nothing is known */
[unhandled content-type:application/pgp-signature]
 \ /
  Last update: 2005-03-22 13:18    [W:0.116 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site