Skip to contentSkip to conversation

struct ipt_entry how to

DISCUSSION Volkan YAZICI 1 participant 1 message Feb 1, 2011 netfilter

lore
Share & tools
lore
#0 lore raw

Hi,

I know that libiptc is not encouraged[1] for public use, but I'm trying to figure out how rapidly I can interrupt the traffic on an interface (if possible) with microsecond granularity; hence I want to issue direct iptc_insert_entry() and iptc_delete_entry() calls without any strings attached, e.g., start-up time, parsing, information gathering, table initialization, etc. I'm reading the iptables sources and lost in the mazes of generate_entry() stuff for creating a proper ipt_entry struct. Does anybody have a sample code for that? Or can you point me to some other relevant resource? Or, the worst, am I on my own on this matter?

Regards.

[1] http://lists.netfilter.org/pipermail/netfilter-devel/2004-June/015844.html