From owner-freebsd-net Mon Jan 13 16:53:34 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 3DF6337B401 for ; Mon, 13 Jan 2003 16:53:33 -0800 (PST) Received: from ns1.interbgc.com (mail.interbgc.com [217.9.224.3]) by mx1.FreeBSD.org (Postfix) with SMTP id 7E90143F18 for ; Mon, 13 Jan 2003 16:53:29 -0800 (PST) (envelope-from rado@cablebg.net) Received: (qmail 56789 invoked by uid 1005); 14 Jan 2003 00:53:24 -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 0.965109 secs); 14 Jan 2003 00:53:24 -0000 Received: from deckland.cablebg.net (HELO deckland) (217.9.227.19) by mail.cablebg.net with SMTP; 14 Jan 2003 00:53:23 -0000 Message-ID: <000b01c2bb5e$eb42f8f0$13e309d9@deckland> From: "Radoslav Vasilev" To: Cc: Subject: kld && inetsw.pr_protocol overriding + old reuse Date: Tue, 14 Jan 2003 02:53:05 +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