aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/en
Commit message (Collapse)AuthorAgeFilesLines
* MFC: clean up en atm driverKenjiro Cho1999-05-081-319/+54
| | | | | | | | | o fix DDB support o back out pvc shadow interface support o misc minor cleanup Notes: svn path=/stable/3/; revision=46697
* This commit was manufactured by cvs2svn to create branch 'RELENG_3'.cvs2svn1999-01-211-437/+0
| | | | Notes: svn path=/stable/3/; revision=42951
* cleanup: remove part of the code for 2.1.Kenjiro Cho1999-01-091-36/+128
| | | | | | | | | add two functions to get the MAC address of the card. Obtained from: ALTQ Notes: svn path=/head/; revision=42426
* probe function changed from returning char * to const char *.Matthew Dillon1998-12-141-2/+2
| | | | Notes: svn path=/head/; revision=41771
* Examine all occurrences of sprintf(), strcat(), and str[n]cpy()Archie Cobbs1998-12-042-5/+5
| | | | | | | | | | | | | | | | | for possible buffer overflow problems. Replaced most sprintf()'s with snprintf(); for others cases, added terminating NUL bytes where appropriate, replaced constants like "16" with sizeof(), etc. These changes include several bug fixes, but most changes are for maintainability's sake. Any instance where it wasn't "immediately obvious" that a buffer overflow could not occur was made safer. Reviewed by: Bruce Evans <bde@zeta.org.au> Reviewed by: Matthew Dillon <dillon@apollo.backplane.com> Reviewed by: Mike Spengler <mks@networkcs.com> Notes: svn path=/head/; revision=41514
* fix a bug which could lock up a transmitter.Kenjiro Cho1998-10-091-1/+5
| | | | | | | | don't use the entire buffer space. if WRTX becomes equal to RDTX, the transmitter stops assuming the buffer is empty. Notes: svn path=/head/; revision=40118
* FIxed printf format errors. Most of them were exposed by our ntohl()Bruce Evans1998-08-171-25/+31
| | | | | | | returning long. There would be many more if int_32_t were not int. Notes: svn path=/head/; revision=38371
* Use [u]intptr_t instead of [u_]long for casts between pointers andBruce Evans1998-08-161-13/+14
| | | | | | | integers. Don't forget to cast to (void *) as well. Notes: svn path=/head/; revision=38354
* update ATM driver. (base version: midway.c 1.67 --> 1.68)Kenjiro Cho1998-07-293-142/+642
| | | | | | | | | | | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=37939
* This commit fixes various 64bit portability problems required forDoug Rabson1998-06-071-1/+1
| | | | | | | | | | | | | FreeBSD/alpha. The most significant item is to change the command argument to ioctl functions from int to u_long. This change brings us inline with various other BSD versions. Driver writers may like to use (__FreeBSD_version == 300003) to detect this change. The prototype FreeBSD/alpha machdep will follow in a couple of days time. Notes: svn path=/head/; revision=36735
* Support compiling with `gcc -ansi'.Bruce Evans1998-04-151-1/+1
| | | | Notes: svn path=/head/; revision=35210
* Staticize.Eivind Eklund1998-02-091-1/+1
| | | | Notes: svn path=/head/; revision=33181
* Make POWERFAIL_NMI, PPS_SYNC and NATM new style options.Eivind Eklund1998-01-311-0/+1
| | | | | | | This also fixes a couple of defunct options; submitted by bde. Notes: svn path=/head/; revision=32925
* Make INET a proper option.Eivind Eklund1998-01-081-0/+1
| | | | | | | | | | | | | | | This will not make any of object files that LINT create change; there might be differences with INET disabled, but hardly anything compiled before without INET anyway. Now the 'obvious' things will give a proper error if compiled without inet - ipx_ip, ipfw, tcp_debug. The only thing that _should_ work (but can't be made to compile reasonably easily) is sppp :-( This commit move struct arpcom from <netinet/if_ether.h> to <net/if_arp.h>. Notes: svn path=/head/; revision=32350
* Removed unused #includes.Bruce Evans1997-10-281-4/+0
| | | | Notes: svn path=/head/; revision=30813
* Added used #include - don't depend on <sys/mbuf.h> includingBruce Evans1997-09-021-0/+1
| | | | | | | <sys/malloc.h> (unless we only use the bogusly shared M*WAIT flags). Notes: svn path=/head/; revision=29024
* Removed unused #includes.Bruce Evans1997-06-141-7/+0
| | | | Notes: svn path=/head/; revision=26640
* import Chuck Cranor's ATM driverKenjiro Cho1997-05-094-0/+4065
Notes: svn path=/cvs2svn/branches/CRANOR/; revision=25603