libipq is the library used for writing QUEUE applications, and is part of netfilter and distributed in the iptables package.
libiptc is the semi-internal library for manipulating iptables structures. From what you have told so far this is not something you will need to look into. There is several applications for QUEUE avvailable on the Internet. For what you are up to perpahs this is one of the closer matches initially: http://freshmeat.net/projects/shaperd/ but there most likely is simpler matches if needed. I am not sure if there really is such great need for examples as the libipq library is farily well documented including a couple of examples on how to use it.. See the libipq directory in iptables if you haven't found it yet. Regards Henrik Nordström Wei koong Chai wrote: > I have read the "Linux netfilter Hacking HOWTO" and "Packet Filtering > HOWTO" numerous times but still don't know how to start using the QUEUE > target or the userspace. I have also read many documents scattered in the > deep space of the internet but still in a very confused state. Sorry for > being quite stupid here because i'm really new to LINUX and netfilter... :( > > You mentioned on your previous mail that there are some sample code on > these. Can you point that out to me as i can't seem to find them... > Thank you for the reply and help. I agree with you that what you > suggested to me here is very much simpler and easier to achieve the > simulation delay result. But the delay is only the one part of my project. > I would later on need to simulate other satellite link properties like > higher BER, dynamic queue on the packets, satellite handover for MEO & LEO > satellite. Thus, i think first option you presented to me (using the QUEUE > target and a userspace program) would be better as it would be extensible. > But then, after much struggle, i still don't know how to use this QUEUE > target and userspace. Can you give me some pointers on how to first use > this QUEUE target and then how to start using this userspace? Do you know > any site that have some kind of tutorial for developing a userspace program > so i can see some sample / examples? > > Others have suggested i use libiptc/libipq... can you help me on this also? > > Thank you again.