summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorEric Leblond <eric@inl.fr>2008-12-17 21:27:58 +0100
committerEric Leblond <eric@inl.fr>2008-12-19 22:26:39 +0100
commitae8ce06e13f590f4328b5e08287c0c9c9f47bbc7 (patch)
tree61694ece36e1b56e970671161972796b66265543 /utils
parentdc1c5d9a99aa785bb35d60d32512e4bbde75a856 (diff)
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>
Diffstat (limited to 'utils')
-rw-r--r--utils/nfqnl_test.c3
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");