Displaying 2 results from an estimated 2 matches for "nfq_get_nfmark".
2011 Aug 31
1
[Bug 743] New: Errors in compiling nfqnl_test.c
...ter_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/cclJyK12.o: In function `cb(nfq_q_handle*, nfgenmsg*, nfq_data*, void*)'...
2012 Apr 25
1
forwarding packets to service in same host without using loopback network
...h)
{
int i, hlen = ntohs (hwph->hw_addrlen);
printf ("hw_src_addr=");
for (i = 0; i < hlen - 1; i++)
printf ("%02x:", hwph->hw_addr[i]);
printf ("%02x ", hwph->hw_addr[hlen - 1]);
}
mark = nfq_get_nfmark (tb);
if (mark)
printf ("mark=%u ", mark);
ifi = nfq_get_indev (tb);
if (ifi)
printf ("indev=%u ", ifi);
ifi = nfq_get_outdev (tb);
if (ifi)
printf ("outdev=%u ", ifi);
ifi = nfq_get_physindev (tb);
if...