summaryrefslogtreecommitdiffstats
path: root/sys/net/ethernet.h
Commit message (Collapse)AuthorAgeFilesLines
* general cleanups mostly aimed at improving portability of driverssam2002-11-141-43/+38
| | | | | | | | | | | | | | o ETHER_* (ETHER_ALIGN, ETHER_MAX_FRAME, ETHER_CRC_LEN, etc.) o M_HASFCS for drivers to indicate packets include FCS o remove global declarations for ng_ether* and vlan_* since these represent a private contract between the if_ethersubr.c code and certain parts of the system that should not normally be abused o add ether_* declarations that were elsewhere o remove ETHER_BPF_* since they are no longer used with the parameter no longer passed to ether_ifattach and ether_ifdetach Reviewed by: many Approved by: re
* Add more ethernet types and move AppleTalk types into proper location.sobomax2002-09-061-7/+257
| | | | Obtained from: NetBSD (syssrc/sys/net/ethertypes.h, rev.1.13)
* Fix a couple of incorrect m_free() vs. m_freem() usages and related issues.luigi2002-04-041-29/+9
| | | | Reviewed-by: brooks
* Remove __P.alfred2002-03-191-5/+5
|
* Don't pass an interface pointer to VLAN_INPUT{,_TAG}. Get it from thebrooks2001-12-031-10/+10
| | | | | | mbuf instead. Suggested by: fenner
* Make vlan(4) loadable, unloadable, and clonable. As a side effect,brooks2001-09-051-0/+35
| | | | | | | interfaces must now always enable VLAN support. Reviewed by: jlemon MFC after: 3 weeks
* Const'ify parameters to ethers(3) routines as appropriate.archie2000-07-181-5/+5
|
* Make all Ethernet drivers attach using ether_ifattach() and detach usingarchie2000-07-131-0/+6
| | | | | | | | | ether_ifdetach(). The former consolidates the operations of if_attach(), ng_ether_attach(), and bpfattach(). The latter consolidates the corresponding detach operations. Reviewed by: julian, freebsd-net
* Provide forward declarations for struct ifnet and struct mbufarchie2000-06-291-0/+3
| | | | to avoid compiler warnings.
* Make the ng_ether(4) node type dynamically loadable like the rest.archie2000-06-261-2/+14
| | | | | | | | | | | | | 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
* Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"peter1999-12-291-2/+2
| | | | | | is an application space macro and the applications are supposed to be free to use it as they please (but cannot). This is consistant with the other BSD's who made this change quite some time ago. More commits to come.
* KAME related header files additions and merges.shin1999-11-051-3/+4
| | | | | | | (only those which don't affect c source files so much) Reviewed by: cvs-committers Obtained from: KAME project
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Add preliminary support for IEEE 802.1Q VLAN tagging. It doesn't actuallywollman1998-03-181-1/+2
| | | | | | | | work reliably yet (I've had panics), but it does seem to occasionally be able to transmit and receive syntactically-correct packets. Also fixes one of if_ethersubr.c's legion style bugs, and removes the hostcache code from standard kernels---the code that depends on it is not going to happen any time soon, I'm afraid.
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notpeter1997-02-221-1/+1
| | | | ready for it yet.
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Move the ethertypes from <netinet/if_ether.h> to <net/ethernet.h>.wollman1997-01-031-1/+19
| | | | | | Many programs need the numbers but don't need the internals of ARP. More commits to follow...
* More cleanups to satisfy the following rules:bde1996-12-191-5/+8
| | | | | | | | | - C++ should be supported for application functions (use __BEGIN_DECLS, etc.). - prototypes should be sorted. - comments on #endif's should spell identifiers the same as the code. - comments on #endif's should have the same sense as the code (use `!' to match ifndef, etc.).
* Clean up Bill's additions.wollman1996-12-191-9/+11
|
* Add prototypes for ethers.3 functions as per wollman:wpaul1996-12-181-1/+11
| | | | | | | | | | | | | | > wollman 96/12/10 09:19:15 > > Modified: lib/libc/net ether_addr.c ethers.3 > Log: > Get struct ether_addr directly from <net/ethernet.h> rather than pulling > in lots of unrelated junk from <net/if.h> and <net/if_ether.h>. These > functions still aren't prototyped anywhere (but should be in > <net/ethernet.h>---got that, Bill?). (Note that this file has no copyright header; one should probably be added.)
* Megacommit to straigthen out ETHER_ mess.phk1996-08-061-6/+56
| | | | | I'm pretty convinced after looking at this that the majority of our drivers are confused about the in/exclusion of ETHER_CRC_LEN :-(
* This file is the (intended) definitive source of the ETHER_ macros.phk1996-08-051-0/+13
OpenPOWER on IntegriCloud