Skip to contentSkip to conversation

Iptalbes/Netfilter ContextId

DISCUSSION Jerry Alexander 1 participant 1 message Oct 4, 2005 netfilter

lore
Share & tools
lore
#0 lore raw

Dear Netfilter-devel:

Working on implementing packetswitching.
Of course Iptables/Netfilter looks like the
correct medium to do so.
Loaded things up and iptables could
Add(append), subtract(delete) and move(replace) UDP/IP connections.
Wrote a base module using nf_register_hook at PREROUTING
to gather packet stats.
My problem is this. My manager wants a "ContextId"
generated during the a add,subtract,move commands. Of course this would have to be unique(using a hashing algorithm which uses the IP address and the Port Number).
Right now this looks like it would need to be generated in the
kernel module. But this would require all the Append/delete/Replace
command functions moved to the kernel function also!!
Hoping someone can point me in the right direction on how
this would be done using Iptables and Netfilter.

Thanks,
Jerry