From owner-freebsd-net Mon Jan 13 16:42:24 2003 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6E3A637B401 for ; Mon, 13 Jan 2003 16:42:23 -0800 (PST) Received: from ns1.interbgc.com (mail.interbgc.com [217.9.224.3]) by mx1.FreeBSD.org (Postfix) with SMTP id DCB2943ED8 for ; Mon, 13 Jan 2003 16:42:19 -0800 (PST) (envelope-from rado@cablebg.net) Received: (qmail 55448 invoked by uid 1005); 14 Jan 2003 00:42:06 -0000 Received: from rado@cablebg.net by keeper.interbgc.com by uid 1002 with qmail-scanner-1.14 (uvscan: v4.1.60/v4242. Clear:. Processed in 6.293849 secs); 14 Jan 2003 00:42:06 -0000 Received: from deckland.cablebg.net (HELO deckland) (217.9.227.19) by mail.cablebg.net with SMTP; 14 Jan 2003 00:42:00 -0000 Message-ID: <000501c2bb5d$53dfbe40$13e309d9@deckland> From: "Radoslav Vasilev" To: Cc: Subject: kld && inetsw.pr_protocol overriding + old reuse Date: Tue, 14 Jan 2003 02:41:40 +0300 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I'm interested in whether the following could be acomplished: there's KLD module, installing some new syscalls in the kernel, as well as installing new ``struct ipprotosw'' for some protocol or another(let's assume IPPROTO_UDP). Could we just add some code in the begging of the new protocol handler (counting, statistics , etc...) and call the old one after doing that. If possible, what should be the preparation for that last call ? Any help appreciated! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message