aboutsummaryrefslogtreecommitdiff
path: root/sys/netatm/uni
Commit message (Collapse)AuthorAgeFilesLines
* Remove netatm from HEAD as it is not MPSAFE and relies on the now removedRobert Watson2008-05-2550-33547/+0
| | | | | | | | | | | | | | | | | | | | | | NET_NEEDS_GIANT. netatm has been disconnected from the build for ten months in HEAD/RELENG_7. Specifics: - netatm include files - netatm command line management tools - libatm - ATM parts in rescue and sysinstall - sample configuration files and documents - kernel support as a module or in NOTES - netgraph wrapper nodes for netatm - ctags data for netatm. - netatm-specific device drivers. MFC after: 3 weeks Reviewed by: bz Discussed with: bms, bz, harti Notes: svn path=/head/; revision=179308
* In keeping with style(9)'s recommendations on macros, use a ';'Robert Watson2008-03-161-1/+1
| | | | | | | | | | | | after each SYSINIT() macro invocation. This makes a number of lightweight C parsers much happier with the FreeBSD kernel source, including cflow's prcc and lxr. MFC after: 1 month Discussed with: imp, rink Notes: svn path=/head/; revision=177253
* Fix various compilation warnings for gcc-4.2.Matt Jacob2007-06-235-19/+8
| | | | | | | Approved by: re (bruce) Notes: svn path=/head/; revision=170996
* don't assume char is signedSam Leffler2005-12-211-1/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=153587
* Stop embedding struct ifnet at the top of driver softcs. Instead theBrooks Davis2005-06-102-5/+5
| | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=147256
* /* -> /*- for license, minor formatting changesWarner Losh2005-01-0750-50/+50
| | | | Notes: svn path=/head/; revision=139823
* Fix a typo that could provoke a panic or access to random memory.Hartmut Brandt2004-07-191-1/+1
| | | | | | | | PR: kern/67012 Submitted by: Zhenmin <zli4@cs.uiuc.edu> Notes: svn path=/head/; revision=132403
* Replace the if_name and if_unit members of struct ifnet with new membersBrooks Davis2003-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) Notes: svn path=/head/; revision=121816
* The number of prefixes can never be negative so use an u_int for this.Hartmut Brandt2003-07-291-1/+1
| | | | Notes: svn path=/head/; revision=118165
* Make the ioctl() interface cleaner with regard to types: use size_tHartmut Brandt2003-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. Notes: svn path=/head/; revision=118160
* Make the debugging variable that controls printing of UNI messagesHartmut Brandt2003-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 Notes: svn path=/head/; revision=117994
* Free the UNI vcc to the same zone from where it was allocated from.Hartmut Brandt2003-07-242-3/+3
| | | | | | | This resulted in a panic when detaching the uni31 signalling manager. Notes: svn path=/head/; revision=117968
* Constify the arguments to several pdu_print functions.Hartmut Brandt2003-07-246-18/+9
| | | | Notes: svn path=/head/; revision=117963
* Convert a lot of uma_zalloc() calls to be NOWAIT instead of WAITOK. AllHartmut Brandt2003-07-236-22/+32
| | | | | | | | these may be called from contexts where we cannot sleep (callout handlers for example). Notes: svn path=/head/; revision=117922
* Remove the zone limits for all the zones used in the ATM code.Hartmut Brandt2003-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. Notes: svn path=/head/; revision=117886
* Fix a number of occurences of calling uma_zalloc() with neitherHartmut Brandt2003-07-181-12/+12
| | | | | | | M_WAITOK nor M_NOWAIT. Notes: svn path=/head/; revision=117740
* Use __FBSDID().David E. O'Brien2003-06-1136-355/+108
| | | | Notes: svn path=/head/; revision=116200
* There is no reason to be cute with ntohl(). Just call it directly ratherDavid E. O'Brien2003-02-234-8/+8
| | | | | | | | | than use a macro that tries to do conversions in place. Compile tested on: sparc64 Notes: svn path=/head/; revision=111376
* Back out M_* changes, per decision of the TRB.Warner Losh2003-02-199-34/+34
| | | | | | | Approved by: trb Notes: svn path=/head/; revision=111119
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.Alfred Perlstein2003-01-2110-46/+46
| | | | | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT. Notes: svn path=/head/; revision=109623
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,Jens Schweikhardt2003-01-011-1/+1
| | | | | | | especially in troff files. Notes: svn path=/head/; revision=108533
* Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/Jens Schweikhardt2002-12-301-1/+1
| | | | | | | Add FreeBSD Id tag where missing. Notes: svn path=/head/; revision=108470
* - Change the ATM stack functions to use intptr_t instead of int for opaqueJohn Baldwin2002-11-0817-157/+159
| | | | | | | | | | arguments. - Fix a few other places that assumed that sizeof(int) == sizeof(void *). Reviewed by: mdodd Notes: svn path=/head/; revision=106651
* Include <sys/systm.h> instead of depending on namespace pollution inBruce Evans2002-09-291-8/+1
| | | | | | | | <net/if_var.h>. But depend on the standard pollution in <sys/param.h>. Removed unused includes. Notes: svn path=/head/; revision=104139
* - Finish the uni part of the storage pool cleanup. There should now onlyAndrew R. Reiter2002-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. Notes: svn path=/head/; revision=98170
* - Nuke some more not needed #ifdef cruft.Andrew R. Reiter2002-04-211-4/+0
| | | | Notes: svn path=/head/; revision=95170
* - Change KM_ macro calls to the appropriate function call.Andrew R. Reiter2002-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. Notes: svn path=/head/; revision=95063
* Remove __P.Alfred Perlstein2002-03-2028-518/+516
| | | | Notes: svn path=/head/; revision=92766
* Don't call log() without a format string.Kris Kennaway2001-09-102-2/+2
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=83299
* Commited patch for uni signaling fix.Jim Pirzyk2001-07-111-2/+2
| | | | | | | | | PR: kern/28748 Submitted by: Richard Hodges <rh@matriplex.com> MFC after: 2 weeks Notes: svn path=/head/; revision=79589
* Preceed/preceeding are not english words. Use precede and preceding.Jeroen Ruigrok van der Werven2001-02-182-2/+2
| | | | Notes: svn path=/head/; revision=72645
* Add back some now needed #include <sys/systm.h>Poul-Henning Kamp2000-12-0717-0/+17
| | | | | | | Fix various warnings while here anyway. Notes: svn path=/head/; revision=69726
* Remove more unused #includes.Poul-Henning Kamp2000-10-3027-27/+0
| | | | Notes: svn path=/head/; revision=67930
* Remove unneeded #include <machine/clock.h>Poul-Henning Kamp2000-10-1536-36/+0
| | | | Notes: svn path=/head/; revision=67164
* Remove the #include kitchensink <netatm/kern_include.h> and addPoul-Henning Kamp2000-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. Notes: svn path=/head/; revision=67004
* More HARP polishina:Poul-Henning Kamp2000-10-124-16/+16
| | | | | | | | unifdef -UFORE_SBUS -DFORE_PCI s/ATM_KERNEL/_KERNER/g Notes: svn path=/head/; revision=67002
* Do some cleanups of the HARP atm codes interface into the system:Poul-Henning Kamp2000-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. Notes: svn path=/head/; revision=66988
* Remove un-needed #include's.Mike Spengler2000-01-1730-47/+0
| | | | | | | Pointed out by: phk Notes: svn path=/head/; revision=56202
* Notice when an interface's ATM address changes when running a local arpserver.Mike Spengler2000-01-151-0/+6
| | | | Notes: svn path=/head/; revision=56063
* $Id$ -> $FreeBSD$Peter Wemm1999-08-2850-86/+86
| | | | Notes: svn path=/head/; revision=50477
* Fix warnings in preparation for adding -Wall -Wcast-qual to theMatthew Dillon1999-01-281-3/+3
| | | | | | | kernel compile Notes: svn path=/head/; revision=43311
* Fix warnings in preparation for adding -Wall -Wcast-qual to theMatthew Dillon1999-01-279-46/+46
| | | | | | | kernel compile Notes: svn path=/head/; revision=43305
* Prevent duplicate output lines from 'atm show arpserver' command on systemsMike Spengler1999-01-191-5/+4
| | | | | | | with multiple ATM physical interfaces. Notes: svn path=/head/; revision=42865
* Prevent accessing freed signalling instance memory during detach processing.Mike Spengler1999-01-191-12/+9
| | | | Notes: svn path=/head/; revision=42862
* Set and propagate the correct cause code values.Poul-Henning Kamp1998-12-115-46/+92
| | | | | | | Submitted by: Mike Spengler <mks@circe.networkcs.com> Notes: svn path=/head/; revision=41689
* Examine all occurrences of sprintf(), strcat(), and str[n]cpy()Archie Cobbs1998-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> Notes: svn path=/head/; revision=41514
* Unneeded file.Poul-Henning Kamp1998-10-311-93/+0
| | | | | | | Submitted by: Mike Spengler <mks@networkcs.com> Notes: svn path=/head/; revision=40801
* Set BLLI Layer 2 protocol field when using a 'User specified' protocol.Poul-Henning Kamp1998-10-311-2/+4
| | | | | | | Submitted by: Mike Spengler <mks@networkcs.com> Notes: svn path=/head/; revision=40800
* Trivial stylish changes, mostly to silence gcc.Poul-Henning Kamp1998-10-3136-183/+180
| | | | | | | | Reviewed by: Mike Spengler <mks@networkcs.com> Submitted by: phk Notes: svn path=/head/; revision=40799
* Two patches from the HARP people:Poul-Henning Kamp1998-09-1720-182/+181
| | | | | | | | | | | Various Makefile related fixes. -Wformat fixes. Submitted by: Mike Spengler <mks@networkcs.com> Notes: svn path=/head/; revision=39412