Ruslan Ermilov
37fc1cc08e
Use the (now standard) Ethernet address parse type.
2003-12-17 13:03:32 +00:00
Ruslan Ermilov
2fbf6cf055
MFS: Make struct arpcom the first entry in softc. (There are at least
...
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.
2003-12-15 11:28:15 +00:00
Ruslan Ermilov
d47c9466dd
Check the correct set of interface flags and fix a memory leak.
...
Reviewed by: harti
2003-11-17 19:13:01 +00:00
Brooks Davis
9bf40ede4a
Replace the if_name and if_unit members of struct ifnet with new members
...
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)
2003-10-31 18:32:15 +00:00
Warner Losh
a163d034fa
Back out M_* changes, per decision of the TRB.
...
Approved by: trb
2003-02-19 05:47:46 +00:00
Alfred Perlstein
44956c9863
Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.
...
Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
2003-01-21 08:56:16 +00:00
Sam Leffler
edbb5246ff
o track changes to ethernet input packet handling
...
o track changes to bpf
o track changes to make ng hooks more private
Reviewed by: many
Approved by: re
2002-11-14 23:44:37 +00:00
Archie Cobbs
f0184ff8e3
Fix GCC warnings caused by initializing a zero length array. In the process,
...
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
2002-05-31 23:48:03 +00:00
David E. O'Brien
6e551fb628
Update to C99, s/__FUNCTION__/__func__/,
...
also don't use ANSI string concatenation.
2001-12-10 08:09:49 +00:00
Julian Elischer
e08d3e3c33
Allow a changed MAC address to show up in ifconfig by changing it
...
in the ifaddr list as well. Also change an error return in the base system.
2001-02-26 09:31:54 +00:00
Julian Elischer
950809d7ac
slight cleanups during testing.
2001-02-25 16:49:04 +00:00
Julian Elischer
2b2c95c996
Add a node that looks to all the word like an ethernet but delivers its
...
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.
2001-02-25 05:46:52 +00:00