summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_gif.c
Commit message (Collapse)AuthorAgeFilesLines
* Stop embedding struct ifnet at the top of driver softcs. Instead thebrooks2005-06-101-2/+2
| | | | | | | | | | | | | | | | | | | | struct ifnet or the layer 2 common structure it was embedded in have been replaced with a struct ifnet pointer to be filled by a call to the new function, if_alloc(). The layer 2 common structure is also allocated via if_alloc() based on the interface type. It is hung off the new struct ifnet member, if_l2com. This change removes the size of these structures from the kernel ABI and will allow us to better manage them as interfaces come and go. Other changes of note: - Struct arpcom is no longer referenced in normal interface code. Instead the Ethernet address is accessed via the IFP2ENADDR() macro. To enforce this ac_enaddr has been renamed to _ac_enaddr. - The second argument to ether_ifattach is now always the mac address from driver private storage rather than sometimes being ac_enaddr. Reviewed by: sobomax, sam
* Removed redundant MODULE_VERSION().ru2005-02-121-1/+0
|
* Fixed an off-by-one error when dealing with interface nameru2005-02-031-2/+2
| | | | (if_xname is IFNAMSIZ-sized and NUL-terminated).
* /* -> /*- for license, minor formatting changesimp2005-01-071-1/+3
|
* Avoid casts as lvalues.kan2004-07-281-2/+3
|
* Slight cosmetic changes.julian2004-07-201-2/+2
| | | | | | | | | Also introduce a macro to be called by persistent nodes to signal their persistence during shutdown to hide this mechanism from the node author. Make node flags have a consistent style in naming. Document the change.
* Having moved metadata usage to mbuf tags, remove code that supportsjulian2004-06-261-8/+4
| | | | | | the old way of doing it. Submitted by: Gleb Smirnoff <glebius@cell.sick.ru>
* Switch to using C99 sparse initialisers for the type methods array.julian2004-05-291-12/+11
| | | | | | | | Should make no binary difference. Submitted by: Gleb Smirnoff <glebius@cell.sick.ru> Reviewed by: Harti Brandt <harti@freebsd.org> MFC after: 1 week
* Unconst. Somebody didn't compile LINT.phk2004-02-241-1/+1
|
* Check that a pointer is non-NULL before dereferencing it, not after.cperciva2004-02-241-1/+2
| | | | | Reported by: "Ted Unangst" <tedu@coverity.com> Approved by: rwatson (mentor)
* Replace the if_name and if_unit members of struct ifnet with new membersbrooks2003-10-311-8/+5
| | | | | | | | | | | | | 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.
* SMP locking for ifnet list.hsu2002-12-221-0/+2
|
* Update to C99, s/__FUNCTION__/__func__/,obrien2001-12-101-6/+6
| | | | also don't use ANSI string concatenation.
* Remove a couple unintentional mentions of Ethernet that crept in frombrooks2001-09-281-2/+2
| | | | ng_ether.c.
* The initial commit contained an error in the license, this is thebrooks2001-09-271-2/+5
| | | | correct one.
* /home/brooks/ng_gif.messagebrooks2001-09-261-0/+596
OpenPOWER on IntegriCloud