utils: Remove unused variable in nfqnl_test

Signed-off-by: Alvaro Neira Ayuso <alvaroneay@gmail.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
utils: add the parameter queue number in nfqnl_test

This patch allows to stablish the number of the queue that
we want to read the packets.

Signed-off-by: Alvaro Neira Ayuso <alvaroneay@gmail.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
include: fix wrong function name in the header

There is no nfq_ip6hdr_snprintf(). nfq_ip6_snprintf() is the correct name.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
extra: use inet_ntop instead of inet_ntoa

The result of inet_ntoa() will be overwritten by the next call to
inet_ntoa(), so using it twice in the same snprintf() call causes
wrong result.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
extra: fix wrong implementation in nfq_udp_get_payload

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
extra: tcp: insufficient sanitization in nfq_tcp_get_payload()

Similar to 7335cbe ("extra: fix wrong implementation in
nfq_udp_get_payload").

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>