All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stuffed Crust <pizza@shaftnet.org>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] - 2.4.17 - if_arp.h - Add the Prism2 ARP type
Date: Sat, 22 Dec 2001 00:01:05 -0500	[thread overview]
Message-ID: <20011222000105.A22554@shaftnet.org> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1249 bytes --]

(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.

Thanks!
-- 
Solomon Peachy                                    pizzaATfucktheusers.org
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"...

[-- Attachment #1.2: prism_arp.diff --]
[-- Type: text/plain, Size: 445 bytes --]

--- 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 */
 

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

             reply	other threads:[~2001-12-22  5:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-22  5:01 Stuffed Crust [this message]
2001-12-22  5:06 ` [PATCH] - 2.4.17 - if_arp.h - Add the Prism2 ARP type David S. Miller
2001-12-22  5:42   ` Stuffed Crust
2001-12-24  0:49 ` David S. Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20011222000105.A22554@shaftnet.org \
    --to=pizza@shaftnet.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.