summaryrefslogtreecommitdiffstats
path: root/sys/net/if_atm.h
Commit message (Collapse)AuthorAgeFilesLines
* Change if_output to take a struct route as its fourth argument in orderkmacy2009-04-161-1/+1
| | | | | | to allow passing a cached struct llentry * down to L2 Reviewed by: rwatson
* Propagate rename of IFF_OACTIVE and IFF_RUNNING to IFF_DRV_OACTIVE andrwatson2005-08-091-2/+2
| | | | | | | | | | | | | | IFF_DRV_RUNNING, as well as the move from ifnet.if_flags to ifnet.if_drv_flags. Device drivers are now responsible for synchronizing access to these flags, as they are in if_drv_flags. This helps prevent races between the network stack and device driver in maintaining the interface flags field. Many __FreeBSD__ and __FreeBSD_version checks maintained and continued; some less so. Reviewed by: pjd, bz MFC after: 7 days
* Stop embedding struct ifnet at the top of driver softcs. Instead thebrooks2005-06-101-6/+7
| | | | | | | | | | | | | | | | | | | | 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
* /* -> /*- for license, minor formatting changesimp2005-01-071-1/+1
|
* Add a device type for virtual interfaces.harti2004-01-261-1/+3
|
* Remove the ATMIOCENA and ATMIOCDIS ioctl. Everyting has been convertedharti2003-08-061-8/+1
| | | | | to use the new OPENVCC and CLOSEVCC calls that allow the sepcification of traffic parameters for the connections.
* Remove the last vestiges of ATM raw mode. This has not been useful for aharti2003-08-061-3/+0
| | | | | long time and has already been removed from the only driver that supported it (en(4)) and from the man page.
* Define a flag for asynchronuous VC open/close operations as usedharti2003-08-051-1/+2
| | | | by the NATM stuff.
* Implement a mechanism by which ATM drivers can inform interestedharti2003-07-291-0/+70
| | | | | | | parts of the system about certain kinds of events, like changes in the ABR rate, changes in the carrier state, PVC changes. The main consumers of these events are the harp(4) pseudo-driver and the ILMI daemon via ng_atm(4).
* Correct the device identifiers for the ProATM cards.harti2003-07-181-2/+2
|
* Implement an utility function that can be used by device drivers toharti2003-07-151-0/+2
| | | | | | | implement the ATMIOCGVCCS ioctls. This routine handles changing VCC tables (which can occure because we cannot hold the driver mutex while allocating memory) with a loop and a re-allocation, should the table not fit in the allocated memory.
* Add identifiers for ProSum's and IDT's cards that are based onharti2003-07-151-1/+9
| | | | the IDT77252 chip. The driver will follow soon.
* ATM_PH_LLCSNAP and ATMIO_FLAG_LLCSNAP must have the same value, soharti2003-07-151-2/+4
| | | | define one in terms of the other.
* Protect a kernel structure by _KERNEL.harti2003-07-151-0/+2
|
* Now that most of this file is new, stylify the rest and correct theharti2003-06-181-59/+57
| | | | style bugs (space/tab) introduced by me.
* Add definitions for the ioctls that are used by netgraph and harp to openharti2003-06-171-0/+18
| | | | and close VCCs.
* Fix the breakage introduced by rev. 1.43 of sys/dev/midway.c (don't commitharti2003-06-161-17/+92
| | | | | | | | on friday 13th and without making a universe). This adds struct and constant definitions for ATM traffic parameters and re-enables the build of the midway driver. Tested by: make universe
* Define a link layer MIB for ATM. Most fields of this MIB are needed byharti2003-05-051-0/+60
| | | | | | ILMI daemons. Factor out common softc fields for all ATM interfaces that need to be externally visible into an ifatm structure and make the midway driver using this structure and fill the MIB.
* Add module data and version to the atm_subr and reference this info from theharti2003-04-291-0/+1
| | | | | | | | | | | | | | | | (currently) only consumer (en). Add a sysctl node hw.atm where the atm drivers will hook on their hardware sysctl sub-trees. Make atm_ifattach call if_attach and remove the corresponding call to if_attach from en. Create atm_ifdetach and use that in en. While the last change actually changes the interface this is not a problem in practice because the only other consumer of this API is an older LANAI driver on the net, that is not ready for current anyway. Reviewed by: -atm
* This corrects a longstanding endian bug in processing LLC/SNAP encodedharti2003-03-131-2/+2
| | | | | | | | | | | frames. A comment in if_atm.h suggests that both macros, that for extracting the ethertype and that for inserting it, handle their argument in host byte order. In fact, the inserting macro treated its argument as an opposite host order short and the calling code feeds it the result of htons(). This happens to work on i386, but fails on sparc. Make the macro use real host endianess. Reviewed by: kjc, atm@
* Remove __P.alfred2002-03-191-5/+5
|
* Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"peter1999-12-291-6/+1
| | | | | | 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.
* clean up en atm driverkjc1999-05-081-40/+1
| | | | | | | | | | | | | o fix DDB support - include "opt_ddb.h" - fix Debugger() arg pointed out by bde o back out pvc shadow interface support - it is currently not used - to make it easier to merge another implementation o misc minor cleanup
* update ATM driver. (base version: midway.c 1.67 --> 1.68)kjc1998-07-291-1/+41
| | | | | | | | | | | | | | | | | | | | | | | several new features are added: - support vc/vp shaping - support pvc shadow interface code cleanup: - remove WMAYBE related code. ENI WMAYBE DMA doen't work. - remove updating if_lastchange for every packet. - BPF related code is moved to midway.c as it should be. (bpfwrite should work if atm_pseudohdr and LLC/SNAP are prepended.) - BPF link type is changed to DLT_ATM_RFC1483. BPF now understands only LLC/SNAP!! (because bpf can't handle variable link header length.) It is recommended to use LLC/SNAP instead of NULL encapsulation for various reasons. (BPF, IPv6, interoperability, etc.) the code has been used for months in ALTQ and KAME IPv6. OKed by phk long time ago.
* import Chuck Cranor's ATM driverkjc1997-05-091-0/+111
OpenPOWER on IntegriCloud