[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130408071903.GB5938@ritirata.org>
Date: Mon, 8 Apr 2013 09:19:03 +0200
From: Antonio Quartulli <ordex@...istici.org>
To: Krzysztof Halasa <khc@...waw.pl>
Cc: netdev@...r.kernel.org
Subject: Re: Ignoring destination MAC address in incoming packets
On Mon, Apr 08, 2013 at 09:08:21AM +0200, Krzysztof Halasa wrote:
> Hi,
>
> I have a bit unusual problem today. Is there a way to ignore destination
> MAC address in incoming packets?
>
> I need to do this on Atheros Wi-Fi. Basically what I need to achieve is
> a sniffer.
>
> Something like this:
> - ATH5k working in ad-hoc mode, certain ESSID and channel selected.
> - UDP packets in certain range are to be forwarded to other IPs.
> - the wifi interface must be able to normally communicate (within its
> ESSID and channel).
> - it has to work with iptables etc. (DNAT, routing).
>
> I know I can change a line in the kernel (the one setting pkt_type to
> OTHER_HOST) but perhaps there is some standard way for things like this?
>
> Or should I use AF_PACKET and forward the data with userspace helper?
>
> Any other idea?
May be a stupid suggestion, but what about setting promisc mode on?
Cheers,
--
Antonio Quartulli
..each of us alone is worth nothing..
Ernesto "Che" Guevara
Content of type "application/pgp-signature" skipped
Powered by blists - more mailing lists