From: Krzysztof Halasa <khc@pm.waw.pl>
To: <netdev@vger.kernel.org>
Subject: Ignoring destination MAC address in incoming packets
Date: Mon, 08 Apr 2013 09:08:21 +0200 [thread overview]
Message-ID: <m3txnhmrdm.fsf@intrepid.localdomain> (raw)
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?
TIA.
--
Krzysztof Halasa
next reply other threads:[~2013-04-08 7:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-08 7:08 Krzysztof Halasa [this message]
2013-04-08 7:19 ` Ignoring destination MAC address in incoming packets Antonio Quartulli
2013-04-08 7:49 ` Krzysztof Halasa
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=m3txnhmrdm.fsf@intrepid.localdomain \
--to=khc@pm.waw.pl \
--cc=netdev@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox