What I am trying to do:
I am trying to develop a small program that uses iptables' libipq to look into the queue and then accept or drop. Problem is that it seems as if the iptables-devel does not install properly and a few of the header files that are present refer to variables that they do not have access to (ie. they are missing #include statements).
I tried to go through the files based on the output and add in the needed decelerations, but it got so tedious and overly complex that I quit.
Then I included <linux/netfilter.h> and get the following error:
/usr/include/linux/netfilter.h:40: error: expected specifier-qualifier-list before '__u32'
Once again seems like something wrong from iptables-devel's end. Googleing left me confused since all suggested solutions/patches left me with more error messages then before all seemingly dead end trails. (thing is the netfilter.h has linux/types.h included where is__32 defined)
My question is:
Does anyone know of a iptables-devel package that is complete and functional?
Or am I probably forgetting something?
Perhaps this 'expected specifier-qualifier-list' is my problem and a solution for that would end my problems.
Picture of what I have:
Running Fedora 9 (this is what is running in the school lab, I have no choice to upgrade)
ran "yum install iptables-devel"
program source for test: http://linux.die.net/man/3/libipq
("Example" code, only edit is removal of the exit(1) function)
using gcc to compile
Think that is all the info that may be relevant.
Please let me know of any past experiences/solutions/resources that may be helpful.
Or if you would like more information.
On a tight deadline with this and this is the only thing holding me back... quite desperate.
Thanks to the community for the continued support!