Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 03-01-2009, 12:19 AM   #1
LQ Newbie
Registered: Feb 2009
Posts: 2

Rep: Reputation: 0
using iptables' libipq (netfilter stable?)

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"
-> iptables-1.4.0-4.fc9.i386
-> iptables-devel-1.4.0-4.fc9.i386
program source for test: ("Example" code, only edit is removal of the exit(1) function)
using gcc to compile
-> gcc-4.3.0-8.i386
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!
Old 08-28-2009, 10:33 AM   #2
LQ Newbie
Registered: Aug 2009
Posts: 2

Rep: Reputation: 0
Unhappy netfilter.h include error

"/usr/include/linux/:40: error: expected specifier-qualifier-list before '__u32'"

Hi M@,

Did you solve this issue? How?



iptables, libipq, netfilter

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables/libipq questions: buffering issues when copying packets to user space beatdream Linux - Networking 2 04-14-2010 10:05 AM
what is exactly difference between iptables and netfilter? soltanihaji Linux - Newbie 2 08-03-2008 12:38 AM
libipq, iptables, tunneling Connor.Poske Linux - Networking 0 07-01-2008 01:24 PM -- iptables 1.4 fhleung Debian 1 03-12-2008 02:02 AM
Netfilter / IPtables SWAT Linux - Newbie 3 11-11-2003 09:04 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:34 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration