From owner-freebsd-hackers Sun May 28 17:21:52 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from kbgroup.co.nz (gateway.kbgroup.co.nz [203.96.151.81]) by hub.freebsd.org (Postfix) with ESMTP id 0681037B5F5 for ; Sun, 28 May 2000 17:21:45 -0700 (PDT) (envelope-from dave.preece@kbgroup.co.nz) Received: from kb_exchange.kbgroup.co.nz ([202.202.203.10]) by gateway.kbgroup.co.nz with ESMTP id <115203>; Mon, 29 May 2000 12:36:47 +1200 Received: by internet.kbgroup.co.nz with Internet Mail Service (5.5.2650.21) id ; Mon, 29 May 2000 12:30:26 +1200 Message-ID: <67B808B0DD93D211ABEE0000B498356B2B4E92@internet.kbgroup.co.nz> From: Dave Preece To: freebsd-hackers@freebsd.org Subject: Re-inserting packets into firewall. MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Date: Mon, 29 May 2000 12:36:45 +1200 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 using sendto. Doesn't seem to work though, it scoops up the packets fine, and upon resending them they aren't being passed to the next rule. Also so tried with net.inet.ip.fw.one_pass as both 1 and 0, with little difference. Any ideas? I have loads of FM's to R, but can't seem to get much divert socket specific stuff - pointers would be appreciated. Hmm, shall hit the books and ip_fw.c some more. Thanks, Dave To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message