From owner-freebsd-net Thu Jun 1 18:45:41 2000 Delivered-To: freebsd-net@freebsd.org Received: from bubba.whistle.com (bubba.whistle.com [207.76.205.7]) by hub.freebsd.org (Postfix) with ESMTP id 3A5ED37B6D8 for ; Thu, 1 Jun 2000 18:45:38 -0700 (PDT) (envelope-from archie@whistle.com) Received: (from archie@localhost) by bubba.whistle.com (8.9.3/8.9.2) id SAA98179; Thu, 1 Jun 2000 18:45:37 -0700 (PDT) From: Archie Cobbs Message-Id: <200006020145.SAA98179@bubba.whistle.com> Subject: Patch review request (ng_ether(4)) To: freebsd-net@freebsd.org Date: Thu, 1 Jun 2000 18:45:37 -0700 (PDT) Cc: julian@elischer.org X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, I'd appreciate any reviews of this patch: ftp://ftp.whistle.com/pub/archie/misc/NGETHER.patch What this does is: - Change the ng_ether(4) netgraph node type to get rid of the "divert" and "orphans" hooks, replacing them with these hooks: "lower" - connection to the raw device "upper" - connection to the upper protocol layers This should allow much more interesting Ethernet operations using netgraph, especially things that filter, etc. For example, bridging can all be done with a netgraph node. - Moves all the netgraph-specific functionality out of net/if_ethersubr.c and into a new file netgraph/ng_ether.c - Allows a KLD for ng_ether.ko so your kernel doesn't have to be compiled with options NETGRAPH to use it. When loaded, all ethernet interfaces become netgraph nodes as well.. including PCCARDS inserted later. Note: ppp(8) will have to be modified slightly before this gets commited; haven't done this yet but it should be trivial. Thanks, -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message