Use nfq_fd function instead of call to nfnetlink function.
authorEric Leblond <eric@inl.fr>
Wed, 17 Dec 2008 20:27:58 +0000 (21:27 +0100)
committerr.kubiak <r.kubiak@samsung.com>
Mon, 16 Nov 2015 13:12:05 +0000 (14:12 +0100)
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

index 7e4edab..7cf27f0 100644 (file)
@@ -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");