Displaying 2 results from an estimated 2 matches for "nfq_get_msg_packet_hdr".
2012 Apr 25
1
forwarding packets to service in same host without using loopback network
...UTING 4
#define OUTPUT 3
/* returns packet id */
static u_int32_t
print_pkt (struct nfq_data *tb)
{
int id = 0;
struct nfqnl_msg_packet_hdr *ph;
struct nfqnl_msg_packet_hw *hwph;
u_int32_t mark, ifi;
int ret;
unsigned char *data;
ph = nfq_get_msg_packet_hdr (tb);
if (ph)
{
id = ntohl (ph->packet_id);
printf ("hw_protocol=0x%04x hook=%u id=%u ",
ntohs (ph->hw_protocol), ph->hook, id);
}
hwph = nfq_get_packet_hw (tb);
if (hwph)
{
int i, hlen = ntohs (h...
2011 Aug 31
1
[Bug 743] New: Errors in compiling nfqnl_test.c
...timated Hours: 0.0
Hi,
I have installed iptables, libnfnetlink and libnetfilter_queue on Ubuntu 10.04
and kernel version 2.6.32
When I try to compile nfqnl_test.c, I get following errors.
/tmp/cclJyK12.o: In function `print_pkt(nfq_data*)':
nfqnl_test.c:(.text+0x15): undefined reference to `nfq_get_msg_packet_hdr'
nfqnl_test.c:(.text+0x73): undefined reference to `nfq_get_nfmark'
nfqnl_test.c:(.text+0x9a): undefined reference to `nfq_get_indev'
nfqnl_test.c:(.text+0xc1): undefined reference to `nfq_get_outdev'
nfqnl_test.c:(.text+0xef): undefined reference to `nfq_get_payload'
/tmp/cclJy...