need help with iptables and iptc

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

 



Hi,

I hope this is the right place to post.  I asked a few times in the
user list but I thought maybe netfilter-devel is the one I should post
on instead.

I am trying to get my test program adopted from the how-to (
http://www.faqs.org/docs/Linux-HOWTO/Querying-libiptc-HOWTO.html#HOWTOPRG)
to compile.

This is a very basic iptc sample program.  Does anyone know why I
can't get the gcc to work?  Any suggestion will be greatly
appreciated.

[root@test utils]# iptables --version
iptables v1.4.7
[root@test utils]# uname -a
Linux test 2.6.33.1-24.fc13.x86_64 #1 SMP Tue Mar 30 18:21:22 UTC 2010
x86_64 x86_64 x86_64 GNU/Linux
[root@test utils]# gcc -Wall -Wunused  -I/usr/include
-DNETFILTER_VERSION=\"1.4.7\"  -L/usr/lib64 -lip4tc -liptc  -o
test_iptc test_iptc.c  -ldl
test_iptc.c: In function ‘main’:
test_iptc.c:19: error: ‘iptc_handle’ undeclared (first use in this function)
test_iptc.c:19: error: (Each undeclared identifier is reported only once
test_iptc.c:19: error: for each function it appears in.)
test_iptc.c:19: error: expected ‘;’ before ‘h’
test_iptc.c:26: error: ‘h’ undeclared (first use in this function)
[root@test utils]# iptables --version
iptables v1.4.7

# ls /lib64/libip
libip4tc.so        libip4tc.so.0.0.0  libip6tc.so.0      libipq.so
     libipq.so.0.0.0    libiptc.so.0
libip4tc.so.0      libip6tc.so        libip6tc.so.0.0.0  libipq.so.0
     libiptc.so         libiptc.so.0.0.0


Thanks,
P
--
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