summaryrefslogtreecommitdiffstats
path: root/sys/netatm/uni/uniarp.c
Commit message (Collapse)AuthorAgeFilesLines
* Replace the if_name and if_unit members of struct ifnet with new membersbrooks2003-10-311-10/+6
| | | | | | | | | | | | | 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)
* Make the ioctl() interface cleaner with regard to types: use size_tharti2003-07-291-8/+11
| | | | | | instead of int where the variable has to hold buffer lengths, use u_int for things like number of network interfaces which in principle can never be negative.
* Make the debugging variable that controls printing of UNI messagesharti2003-07-251-1/+8
| | | | | | | accessible as a sysctl and move the debugging stuff out of DIAGNOSTICS. Submitted by: Vincent Jardin <vjardin@wanadoo.fr> MFC after: 2 weeks
* Convert a lot of uma_zalloc() calls to be NOWAIT instead of WAITOK. Allharti2003-07-231-1/+2
| | | | | these may be called from contexts where we cannot sleep (callout handlers for example).
* Remove the zone limits for all the zones used in the ATM code.harti2003-07-221-1/+0
| | | | | | | | | | | These were a left over from when the private memory pools were converted to use uma zones. The limit of UMA zones, however, works differently. When a zone is limited to only one or two pages than, on multi-cpu systems, processes can get stuck on the zonelimit, because all remaining free items are in caches of other CPUs. Also add rudimentary error handling in some places (panic) when a zone cannot be created.
* Use __FBSDID().obrien2003-06-111-10/+3
|
* 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.
* - Finish the uni part of the storage pool cleanup. There should now onlyarr2002-06-131-15/+17
| | | | | | | | | | be a few bits left to clean from the HARP code in terms of what is using the storage pools; once that's done, the memory management code can be removed entirely. This commit effectively changes the use of dynamic memory routines from atm_allocate, atm_free, atm_release_pool to uma_zcreate, uma_zalloc, uma_zfree, uma_zdestroy.
* - Change KM_ macro calls to the appropriate function call.arr2002-04-191-5/+3
| | | | | | | - Nuke KM_ macros from port.h This is a leadin step towards cleaning up this code as I wait for some ATM cards and a ATM switch to arrive.
* Remove __P.alfred2002-03-201-2/+2
|
* Remove unneeded #include <machine/clock.h>phk2000-10-151-1/+0
|
* Remove the #include kitchensink <netatm/kern_include.h> and addphk2000-10-121-1/+26
| | | | | | | | | the #includes to the respective source files. Also un-nest includes in <dev/hfa/fore_include.h> I have run src/tools/tools/kerninclude to remove 1239 clearly unneeded #includes reducing the total from 3524 includes to 2285.
* Notice when an interface's ATM address changes when running a local arpserver.mks2000-01-151-0/+6
|
* $Id$ -> $FreeBSD$peter1999-08-281-2/+2
|
* Fix warnings in preparation for adding -Wall -Wcast-qual to thedillon1999-01-271-10/+10
| | | | kernel compile
* Prevent duplicate output lines from 'atm show arpserver' command on systemsmks1999-01-191-5/+4
| | | | with multiple ATM physical interfaces.
* Examine all occurrences of sprintf(), strcat(), and str[n]cpy()archie1998-12-041-5/+8
| | | | | | | | | | | | | | 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>
* Trivial stylish changes, mostly to silence gcc.phk1998-10-311-6/+5
| | | | | Reviewed by: Mike Spengler <mks@networkcs.com> Submitted by: phk
* Two patches from the HARP people:phk1998-09-171-9/+9
| | | | | | | | Various Makefile related fixes. -Wformat fixes. Submitted by: Mike Spengler <mks@networkcs.com>
* Add new files for HARP3phk1998-09-151-0/+1231
Host ATM Research Platform (HARP), Network Computing Services, Inc. This software was developed with the support of the Defense Advanced Research Projects Agency (DARPA).
OpenPOWER on IntegriCloud