From owner-freebsd-net Mon Aug 7 11:55:24 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 9705537BADA for ; Mon, 7 Aug 2000 11:55:21 -0700 (PDT) (envelope-from archie@whistle.com) Received: (from archie@localhost) by bubba.whistle.com (8.9.3/8.9.3) id LAA12675; Mon, 7 Aug 2000 11:55:18 -0700 (PDT) (envelope-from archie) From: Archie Cobbs Message-Id: <200008071855.LAA12675@bubba.whistle.com> Subject: Re: netgraph ethernet module In-Reply-To: from Andrey Sverdlichenko at "Aug 7, 2000 11:07:31 am" To: Andrey Sverdlichenko Date: Mon, 7 Aug 2000 11:55:18 -0700 (PDT) Cc: freebsd-net@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL68 (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 Andrey Sverdlichenko writes: > Is there a way to get hardware address from ng_ether? ng_ether_mux must > fill source address in ethernet header, and AFAIK the only way it can get > it now is downstream->peer->node->private->ac_enaddr, which is dirty hack. > Possibly a control message should be added to this node type? OK, I just checked in this change into -current: > Add three new control messages to the ng_ether(4) netgraph node type: > > NGM_ETHER_GET_ENADDR: Get the device's Ethernet address > NGM_ETHER_SET_PROMISC: Enable/disable promiscuous mode > NGM_ETHER_SET_AUTOSRC: Enable/disable packet source address override Let me know if there are any problems. -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