From: Eric Branson <bransone@ecs.csus.edu>
To: netfilter-devel@vger.kernel.org
Subject: questions regaring ARP, NFQUEUE, and enumerations
Date: Tue, 3 Nov 2009 12:57:34 -0800 (PST) [thread overview]
Message-ID: <31194109.4191257281854408.JavaMail.root@venus.ecs.csus.edu> (raw)
In-Reply-To: <16093171.4171257281805745.JavaMail.root@venus.ecs.csus.edu>
I want to capture ARP packets on ingress but I am having trouble understanding the current netfilter architecture. I have not been able to receive any ARP packets through NFQUEUE (using `arptables -A INPUT -j QUEUE`) using a modified nfqnl_test and I was wondering if this is currently supported or even possible. If so, what type of modifications must be made to nfqnl_test.c to receive them? Am I going to have to write a kernel module similar to ip_queue.c? (If its more complicated than that just say so; I'm still wrapping my head around the network and netfilter subsystems.)
Following nfqnl_test.c I see that both nfq_open() and nfq_bind_pf() use AF_* enumerations, but nfqnl_recv_config() within the kernel, which I assume ultimately receives the NFQA_CFG_CMD message, indexes queue_handler with the given AF_* but would seem to expect NFPROTO_* enumerations, which are different (such as AF_AX25 and NFPROTO_ARP). Which enumeration is supposed to be used, AF_* or NFPROTO_*?
--
Eric Branson
California State University, Sacramento
next parent reply other threads:[~2009-11-03 21:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <16093171.4171257281805745.JavaMail.root@venus.ecs.csus.edu>
2009-11-03 20:57 ` Eric Branson [this message]
2009-11-04 11:23 ` questions regaring ARP, NFQUEUE, and enumerations Patrick McHardy
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=31194109.4191257281854408.JavaMail.root@venus.ecs.csus.edu \
--to=bransone@ecs.csus.edu \
--cc=netfilter-devel@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.