summaryrefslogtreecommitdiffstats
path: root/sys/netatm/uni
Commit message (Collapse)AuthorAgeFilesLines
* Fix a typo that could provoke a panic or access to random memory.harti2004-07-191-1/+1
| | | | | PR: kern/67012 Submitted by: Zhenmin <zli4@cs.uiuc.edu>
* 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)
* The number of prefixes can never be negative so use an u_int for this.harti2003-07-291-1/+1
|
* Make the ioctl() interface cleaner with regard to types: use size_tharti2003-07-293-10/+14
| | | | | | 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-255-15/+29
| | | | | | | accessible as a sysctl and move the debugging stuff out of DIAGNOSTICS. Submitted by: Vincent Jardin <vjardin@wanadoo.fr> MFC after: 2 weeks
* Free the UNI vcc to the same zone from where it was allocated from.harti2003-07-242-3/+3
| | | | This resulted in a panic when detaching the uni31 signalling manager.
* Constify the arguments to several pdu_print functions.harti2003-07-246-18/+9
|
* Convert a lot of uma_zalloc() calls to be NOWAIT instead of WAITOK. Allharti2003-07-236-22/+32
| | | | | 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-225-9/+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.
* Fix a number of occurences of calling uma_zalloc() with neitherharti2003-07-181-12/+12
| | | | M_WAITOK nor M_NOWAIT.
* Use __FBSDID().obrien2003-06-1136-355/+108
|
* There is no reason to be cute with ntohl(). Just call it directly ratherobrien2003-02-234-8/+8
| | | | | | than use a macro that tries to do conversions in place. Compile tested on: sparc64
* Back out M_* changes, per decision of the TRB.imp2003-02-199-34/+34
| | | | Approved by: trb
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-2110-46/+46
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,schweikh2003-01-011-1/+1
| | | | especially in troff files.
* Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/schweikh2002-12-301-1/+1
| | | | Add FreeBSD Id tag where missing.
* - Change the ATM stack functions to use intptr_t instead of int for opaquejhb2002-11-0817-157/+159
| | | | | | | arguments. - Fix a few other places that assumed that sizeof(int) == sizeof(void *). Reviewed by: mdodd
* Include <sys/systm.h> instead of depending on namespace pollution inbde2002-09-291-8/+1
| | | | | <net/if_var.h>. But depend on the standard pollution in <sys/param.h>. Removed unused includes.
* - Finish the uni part of the storage pool cleanup. There should now onlyarr2002-06-1318-200/+195
| | | | | | | | | | 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.
* - Nuke some more not needed #ifdef cruft.arr2002-04-211-4/+0
|
* - Change KM_ macro calls to the appropriate function call.arr2002-04-1912-105/+98
| | | | | | | - 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-2028-518/+516
|
* Don't call log() without a format string.kris2001-09-102-2/+2
| | | | MFC after: 2 weeks
* Commited patch for uni signaling fix.pirzyk2001-07-111-2/+2
| | | | | | PR: kern/28748 Submitted by: Richard Hodges <rh@matriplex.com> MFC after: 2 weeks
* Preceed/preceeding are not english words. Use precede and preceding.asmodai2001-02-182-2/+2
|
* Add back some now needed #include <sys/systm.h>phk2000-12-0717-0/+17
| | | | Fix various warnings while here anyway.
* Remove more unused #includes.phk2000-10-3027-27/+0
|
* Remove unneeded #include <machine/clock.h>phk2000-10-1536-36/+0
|
* Remove the #include kitchensink <netatm/kern_include.h> and addphk2000-10-1236-36/+701
| | | | | | | | | 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.
* More HARP polishina:phk2000-10-124-16/+16
| | | | | unifdef -UFORE_SBUS -DFORE_PCI s/ATM_KERNEL/_KERNER/g
* Do some cleanups of the HARP atm codes interface into the system:phk2000-10-121-84/+0
| | | | | | | | Define the NETISR just like all the other NETISRs. unifdef -Usun -D__FreeBSD__ we will probably never support sun4c and if we do we can't use the solaris code anyway and I doubt anybody will be running Fore ATM cards in then in the first place.
* Remove un-needed #include's.mks2000-01-1730-47/+0
| | | | Pointed out by: phk
* Notice when an interface's ATM address changes when running a local arpserver.mks2000-01-151-0/+6
|
* $Id$ -> $FreeBSD$peter1999-08-2850-86/+86
|
* Fix warnings in preparation for adding -Wall -Wcast-qual to thedillon1999-01-281-3/+3
| | | | kernel compile
* Fix warnings in preparation for adding -Wall -Wcast-qual to thedillon1999-01-279-46/+46
| | | | kernel compile
* Prevent duplicate output lines from 'atm show arpserver' command on systemsmks1999-01-191-5/+4
| | | | with multiple ATM physical interfaces.
* Prevent accessing freed signalling instance memory during detach processing.mks1999-01-191-12/+9
|
* Set and propagate the correct cause code values.phk1998-12-115-46/+92
| | | | Submitted by: Mike Spengler <mks@circe.networkcs.com>
* Examine all occurrences of sprintf(), strcat(), and str[n]cpy()archie1998-12-047-24/+36
| | | | | | | | | | | | | | 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>
* Unneeded file.phk1998-10-311-93/+0
| | | | Submitted by: Mike Spengler <mks@networkcs.com>
* Set BLLI Layer 2 protocol field when using a 'User specified' protocol.phk1998-10-311-2/+4
| | | | Submitted by: Mike Spengler <mks@networkcs.com>
* Trivial stylish changes, mostly to silence gcc.phk1998-10-3136-183/+180
| | | | | Reviewed by: Mike Spengler <mks@networkcs.com> Submitted by: phk
* Two patches from the HARP people:phk1998-09-1720-182/+181
| | | | | | | | Various Makefile related fixes. -Wformat fixes. Submitted by: Mike Spengler <mks@networkcs.com>
* Add new files for HARP3phk1998-09-1551-0/+33369
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