From: Eric Leblond <eric@inl.fr>
To: netfilter-devel@vger.kernel.org
Cc: Eric Leblond <eric@inl.fr>
Subject: [libnetfilter_queue 2/4] Use nfq_fd function instead of call to nfnetlink function.
Date: Fri, 19 Dec 2008 22:36:29 +0100 [thread overview]
Message-ID: <1229722591-7836-3-git-send-email-eric@inl.fr> (raw)
In-Reply-To: <1229722591-7836-1-git-send-email-eric@inl.fr>
This patch modifies the example program to use nfq_fd function
instead of call to nfnetlink function.
Signed-off-by: Eric Leblond <eric@inl.fr>
---
utils/nfqnl_test.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/utils/nfqnl_test.c b/utils/nfqnl_test.c
index 7e4edab..7cf27f0 100644
--- a/utils/nfqnl_test.c
+++ b/utils/nfqnl_test.c
@@ -95,8 +95,7 @@ int main(int argc, char **argv)
exit(1);
}
- nh = nfq_nfnlh(h);
- fd = nfnl_fd(nh);
+ fd = nfq_fd(h);
while ((rv = recv(fd, buf, sizeof(buf), 0)) && rv >= 0) {
printf("pkt received\n");
--
1.5.6.3
next prev parent reply other threads:[~2008-12-19 21:36 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-19 21:36 [libnetfilter_queue 0/4] misc code cleaning and documentation Eric Leblond
2008-12-19 21:36 ` [libnetfilter_queue 1/4] Change variable name to have an homogeneous naming Eric Leblond
2008-12-19 21:36 ` Eric Leblond [this message]
2008-12-19 21:36 ` [libnetfilter_queue 3/4] Suppress double call of nfnl_subsys_close() Eric Leblond
2008-12-19 21:36 ` [libnetfilter_queue 4/4] Switch documentation style to doxygen Eric Leblond
2008-12-22 10:45 ` Pablo Neira Ayuso
2008-12-22 10:55 ` Eric Leblond
2008-12-22 10:59 ` [libnetfilter_queue] Add doxygen config file Eric Leblond
2008-12-22 11:41 ` Pablo Neira Ayuso
2008-12-22 12:56 ` Eric Leblond
2008-12-22 12:32 ` [libnetfilter_queue 4/4] Switch documentation style to doxygen Pablo Neira Ayuso
2008-12-22 13:50 ` Jan Engelhardt
2008-12-22 22:02 ` Pablo Neira Ayuso
2008-12-22 22:08 ` Jan Engelhardt
2008-12-22 10:48 ` [libnetfilter_queue 0/4] misc code cleaning and documentation Pablo Neira Ayuso
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=1229722591-7836-3-git-send-email-eric@inl.fr \
--to=eric@inl.fr \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).