From owner-freebsd-hackers Mon Feb 21 6:37:49 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from web119.yahoomail.com (web119.yahoomail.com [205.180.60.120]) by hub.freebsd.org (Postfix) with SMTP id 8338737BD5A for ; Mon, 21 Feb 2000 06:37:31 -0800 (PST) (envelope-from m_evmenkin@yahoo.com) Received: (qmail 21863 invoked by uid 60001); 21 Feb 2000 14:37:07 -0000 Message-ID: <20000221143707.21862.qmail@web119.yahoomail.com> Received: from [12.20.58.68] by web119.yahoomail.com; Mon, 21 Feb 2000 06:37:07 PST Date: Mon, 21 Feb 2000 06:37:07 -0800 (PST) From: Maksim Yevmenkin Subject: NETGRAPH patches (proposal) To: freebsd-current@freebsd.org Cc: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello All, Here are some small patches for NETGRAPH. These are against -current cvsup'ed yesterday around 8:30pm EST. http://home.earthlink.net/~evmax/ng.tar.gz It also includes small test program (based on nghook). Compile and run it like: # ./a.out -a iface_name: divert NETGRAPH option in kernel config file is required. Here is the description. ng_ether node has two hooks ``divert'' and ``orphan''. It is possible to connect to the one of the hooks and intercept row Ethernet frames. But there is no clean way to intercept frame, do something and return it back to kernel. This patch provides additional hook ``divertin'' (mmm... name is not good, i think) for each ng_ether node. Implementation issues This will not work for ``orphan'' frames. Since kernel drops it anyway, i decided to leave it as it is. But is is possible to intercept ``orphan'' packets, change it, and write back to ``divertin''. Thanks, emax __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message