summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_eiface.c
Commit message (Collapse)AuthorAgeFilesLines
* Switch to using C99 sparse initialisers for the type methods array.julian2004-05-291-12/+10
| | | | | | | | Should make no binary difference. Submitted by: Gleb Smirnoff <glebius@cell.sick.ru> Reviewed by: Harti Brandt <harti@freebsd.org> MFC after: 1 week
* + rename and document an unused field in struct arpcom (field is stillluigi2004-04-181-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | there so there are no ABI changes); + replace 5 redefinitions of the IPF2AC macro with one in if_arp.h Eventually (but before freezing the ABI) we need to get rid of struct arpcom (initially with the help of some smart #defines to avoid having to touch each and every driver, see below). Apart from the struct ifnet, struct arpcom now only stores a copy of the MAC address (ac_enaddr, but we already have another copy in the struct ifnet -- if_addrhead), and a netgraph-specific field which is _always_ accessed through the ifp, so it might well go into the struct ifnet too (where, besides, there is already an entry for AF_NETGRAPH data...) Too bad ac_enaddr is widely referenced by all drivers. But this can be fixed as follows: #define ac_enaddr ac_if.the_original_ac_enaddr_in_struct_ifnet (note that the right hand side would likely be a pointer rather than the base address of an array.)
* Use the (now standard) Ethernet address parse type.ru2003-12-171-19/+5
|
* MFS: Make struct arpcom the first entry in softc. (There are at leastru2003-12-151-1/+1
| | | | | two functions in sys/net/if.c that assume that softc starts with arpcom.) This makes setting of ethernet address via ifconfig(8) work as expected.
* Check the correct set of interface flags and fix a memory leak.ru2003-11-171-1/+2
| | | | Reviewed by: harti
* Replace the if_name and if_unit members of struct ifnet with new membersbrooks2003-10-311-11/+8
| | | | | | | | | | | | | if_xname, if_dname, and if_dunit. if_xname is the name of the interface and if_dname/unit are the driver name and instance. This change paves the way for interface renaming and enhanced pseudo device creation and configuration symantics. Approved By: re (in principle) Reviewed By: njl, imp Tested On: i386, amd64, sparc64 Obtained From: NetBSD (if_xname)
* Back out M_* changes, per decision of the TRB.imp2003-02-191-1/+1
| | | | Approved by: trb
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-211-1/+1
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* o track changes to ethernet input packet handlingsam2002-11-141-25/+5
| | | | | | | | o track changes to bpf o track changes to make ng hooks more private Reviewed by: many Approved by: re
* Fix GCC warnings caused by initializing a zero length array. In the process,archie2002-05-311-0/+2
| | | | | | | simply things a bit by getting rid of 'struct ng_parse_struct_info' which was useless because it only contained one field. MFC after: 2 weeks
* Update to C99, s/__FUNCTION__/__func__/,obrien2001-12-101-3/+3
| | | | also don't use ANSI string concatenation.
* Allow a changed MAC address to show up in ifconfig by changing itjulian2001-02-261-0/+13
| | | | in the ifaddr list as well. Also change an error return in the base system.
* slight cleanups during testing.julian2001-02-251-4/+46
|
* Add a node that looks to all the word like an ethernet but delivers itsjulian2001-02-251-0/+633
ehternet frames to a netgraph hook. Submitted by: "Vitaly V. Belekhov" <vitaly@riss-telecom.ru> translated to 5.0 by me. man page not yet written. This node still needs a little work.. don't use yet. Not yet linked into the build.
OpenPOWER on IntegriCloud