From owner-freebsd-hackers Mon Jul 2 8:19: 5 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from bugz.infotecs.ru (bugz.infotecs.ru [195.210.139.22]) by hub.freebsd.org (Postfix) with ESMTP id 40CBA37B405 for ; Mon, 2 Jul 2001 08:19:00 -0700 (PDT) (envelope-from vel@bugz.infotecs.ru) Received: (from vel@localhost) by bugz.infotecs.ru (8.11.1/8.11.1) id f62FWEw87507 for freebsd-hackers@freebsd.org; Mon, 2 Jul 2001 19:32:14 +0400 (MSD) (envelope-from vel) From: "Eugene L. Vorokov" Message-Id: <200107021532.f62FWEw87507@bugz.infotecs.ru> Subject: catching ip packets from module To: freebsd-hackers@freebsd.org Date: Mon, 2 Jul 2001 19:32:13 +0400 (MSD) X-Mailer: ELM [version 2.4ME+ PL82 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, can please someone enlighten me how can a module catch ip packets before they actually enter the stack, the way ipfw or ipf does ? I tried to look at the sources, but ipfw seems to do it some very specific way which is based on some in-kernel hacks to make it possible (ofcourse correct me if I'm wrong), and ipf does so many things at startup so I can't figure out which function does what :( I just want to add my handler so that all packets would be passed to it before entering the kernel ... Thanks for the information. Regards, Eugene To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message