[libnetfilter_queue 2/4] Use nfq_fd function instead of call to nfnetlink function.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch modifies the example program to use nfq_fd function
instead of call to nfnetlink function.

Signed-off-by: Eric Leblond <eric@xxxxxx>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux