summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_ether.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix wrong offset bug in ng_enaddr_unparse().archie2000-09-011-1/+2
|
* Add three more control messages to complement their opposites:archie2000-08-151-9/+99
| | | | | NGM_ETHER_SET_ENADDR, NGM_ETHER_GET_PROMISC, and NGM_ETHER_GET_AUTOSRC. Alter parsing algorithm so the EN address really looks like one.
* Take advantage of the new unsigned and hex integer types.archie2000-08-101-2/+2
|
* Add three new control messages to the ng_ether(4) netgraph node type:archie2000-08-071-4/+80
| | | | | | 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
* Remove node's name reference when the interface is detached;archie2000-07-191-0/+1
| | | | | | | | otherwise, the ng_ether.ko KLD will never be unloadable after all Ethernet interfaces are detached, as it should be, because of the lingering extra reference. Submitted by: "Yevmenkin, Maksim N, CSCIO" <myevmenkin@att.com>
* Set NG_INVALID flag when destroying node.archie2000-07-141-0/+1
|
* Fix race condition caused by using NG_SEND_DATAQ() where we meantarchie2000-07-121-3/+1
| | | | | | to use ng_queue_data(). Reported by: Udo Erdelhoff <ue@nathan.ruhr.de>
* Don't forget to set our MAC address into packets we wre sending out viajulian2000-07-061-0/+6
| | | | | | netgraph. Eventually we may need to have a separate hook for packets that already have a source AMC address but for now just drop it in. Should fix PPPoE.
* Make the ng_ether(4) node type dynamically loadable like the rest.archie2000-06-261-0/+633
This means 'options NETGRAPH' is no longer necessary in order to get netgraph-enabled Ethernet interfaces. This supports loading/unloading the ng_ether.ko and attaching/detaching the Ethernet interface in any order. Add two new hooks 'upper' and 'lower' to allow access to the protocol demux engine and the raw device, respectively. This enables bridging to be defined as a netgraph node, if so desired. Reviewed by: freebsd-net@freebsd.org
OpenPOWER on IntegriCloud