RE: Re-inserting packets into firewall.

2000-05-28 Thread Dave Preece
Julian, Many thanks! > If you reinsert the packet and use the same sockaddr that > you received, > it should insert the packet at the first rule number GREATER THAN the > rule that diverted it. The rule number of diversion is stored in > the 'port' field of the sockaddr. Loud clang noise as

Re: Re-inserting packets into firewall.

2000-05-28 Thread Julian Elischer
Dave Preece wrote: > > I'm having a go at writing a 'component' in the firewall chain. The > component may, or may not, readdress the packet and therefore > I need to drop > it back into the chain at the next rule. this is how ipdivert should work.. If you reinsert the packet and use the same

Re-inserting packets into firewall.

2000-05-28 Thread Dave Preece
I'm having a go at writing a 'component' in the firewall chain. The component may, or may not, readdress the packet and therefore I need to drop it back into the chain at the next rule. Should be simple. So I've written some test code just to scoop up packets and drop them back in unaltered usin