Hi;
We are implementing a module based on the early packet filtering hooks API.
This module is ported from the netfilter Linux API.

Now my question;

We are trying to put packets on the net as soon as we got them and change some parameters to the IP and UDP
headers.
So we catch them in the pre-routing hook (PHYSCAL_IN), change some fields
and we want to put it on the wire ASAP.

My question is: What is the bes way to do that ?
We tried doing net_inject(DIRECT) with the modified packet but the system panic all the time. Can I get any sample code on how to use net_inject ? It is full implemented ?
Or doing net_inject(DIRECT) is not the best way ?

Also, how to tell the system to stop processing the packet after I return from the hook ? In netfilter there are several return codes that I tell the system to continue processing the packet, reject the packet, or that the hook has take care of the packet and the system has to ignore it ( stolen ).

We are very close to finish the module, this is our latest "stop" for real testing against Linux netfilter, so I will appreciate if I can get a prompt response.

Thanks
Diego B

_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to