From ae8ce06e13f590f4328b5e08287c0c9c9f47bbc7 Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Wed, 17 Dec 2008 21:27:58 +0100 Subject: 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 --- utils/nfqnl_test.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'utils') 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"); -- cgit v1.2.3