diff options
author | Eric Leblond <eric@inl.fr> | 2008-12-17 21:27:58 +0100 |
---|---|---|
committer | Eric Leblond <eric@inl.fr> | 2008-12-19 22:26:39 +0100 |
commit | ae8ce06e13f590f4328b5e08287c0c9c9f47bbc7 (patch) | |
tree | 61694ece36e1b56e970671161972796b66265543 | |
parent | dc1c5d9a99aa785bb35d60d32512e4bbde75a856 (diff) | |
download | libnetfilter_queue-ae8ce06e13f590f4328b5e08287c0c9c9f47bbc7.tar.gz |
Use nfq_fd function instead of call to nfnetlink function.
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>
-rw-r--r-- | 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"); |