Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Aug 2000 11:55:18 -0700 (PDT)
From:      Archie Cobbs <archie@whistle.com>
To:        Andrey Sverdlichenko <blaze@infosec.ru>
Cc:        freebsd-net@FreeBSD.ORG
Subject:   Re: netgraph ethernet module
Message-ID:  <200008071855.LAA12675@bubba.whistle.com>
In-Reply-To: <Pine.BSF.4.21.0008071056210.6111-100000@xen.infosec.ru> from Andrey Sverdlichenko at "Aug 7, 2000 11:07:31 am"

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200008071855.LAA12675>