aboutsummaryrefslogtreecommitdiff
path: root/sys/netatm/spans
Commit message (Collapse)AuthorAgeFilesLines
* Remove netatm from HEAD as it is not MPSAFE and relies on the now removedRobert Watson2008-05-2513-9616/+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-231-3/+3
| | | | | | | Approved by: re (bruce) Notes: svn path=/head/; revision=170996
* Stop embedding struct ifnet at the top of driver softcs. Instead theBrooks Davis2005-06-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | | 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-0713-13/+13
| | | | Notes: svn path=/head/; revision=139823
* Avoid casts as lvalues.Alexander Kabaev2004-07-281-4/+4
| | | | Notes: svn path=/head/; revision=132780
* Replace the if_name and if_unit members of struct ifnet with new membersBrooks Davis2003-10-311-5/+3
| | | | | | | | | | | | | | | | 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
* Make the ioctl() interface cleaner with regard to types: use size_tHartmut Brandt2003-07-292-2/+4
| | | | | | | | | 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
* Print the offending SPANS message only if printing is enabled.Hartmut Brandt2003-07-251-1/+2
| | | | Notes: svn path=/head/; revision=118012
* Create a sysctl that allows to enable/disable printing of SPANS messages.Hartmut Brandt2003-07-243-17/+15
| | | | | | | | | | While here delete to sys/types.h includes when sys/param.h is also included. Submitted by: Vincent Jardin <vjardin@wanadoo.fr> MFC after: 2 weeks Notes: svn path=/head/; revision=117970
* Remove the zone limits for all the zones used in the ATM code.Hartmut Brandt2003-07-223-4/+8
| | | | | | | | | | | | | | 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
* Use __FBSDID().David E. O'Brien2003-06-119-81/+26
| | | | Notes: svn path=/head/; revision=116199
* Use __FBSDID rather than rcsid[].David E. O'Brien2003-04-031-9/+3
| | | | Notes: svn path=/head/; revision=113038
* Back out M_* changes, per decision of the TRB.Warner Losh2003-02-195-19/+19
| | | | | | | Approved by: trb Notes: svn path=/head/; revision=111119
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.Alfred Perlstein2003-01-215-19/+19
| | | | | | | 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-302-4/+4
| | | | | | | 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-081-1/+1
| | | | | | | | | | arguments. - Fix a few other places that assumed that sizeof(int) == sizeof(void *). Reviewed by: mdodd Notes: svn path=/head/; revision=106651
* Make netatm/spans compile in the kernel without depending on userlandPeter Wemm2002-09-174-4/+381
| | | | | | | include files to provide functions for kernel source (spans_kxdr.c) Notes: svn path=/head/; revision=103470
* Fix a few warnings by adding a missing prototypePeter Wemm2002-05-241-0/+1
| | | | Notes: svn path=/head/; revision=97222
* - Remove a few storage pools and replace them with UMA zones. The spansAndrew R. Reiter2002-05-247-78/+90
| | | | | | | | code is now storage pool free, so I believe this only leaves the uni base not cleaned. Notes: svn path=/head/; revision=97194
* - Nuke some more not needed #ifdef cruft.Andrew R. Reiter2002-04-211-4/+0
| | | | Notes: svn path=/head/; revision=95170
* - Nuke some more #ifdef sun related sections.Andrew R. Reiter2002-04-191-5/+0
| | | | Notes: svn path=/head/; revision=95073
* - Change KM_ macro calls to the appropriate function call.Andrew R. Reiter2002-04-197-30/+26
| | | | | | | | | | - 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
* Wrap function in #ifdef DIAGNOSTIC to compile with -Werror.Matthew N. Dodd2002-04-171-2/+4
| | | | Notes: svn path=/head/; revision=94900
* Remove __P.Alfred Perlstein2002-03-208-146/+139
| | | | Notes: svn path=/head/; revision=92766
* Silence some warningsAlfred Perlstein2001-03-201-9/+9
| | | | | | | Submitted by: LINT Notes: svn path=/head/; revision=74516
* Add back some now needed #include <sys/systm.h>Poul-Henning Kamp2000-12-072-0/+2
| | | | | | | Fix various warnings while here anyway. Notes: svn path=/head/; revision=69726
* Remove more unused #includes.Poul-Henning Kamp2000-10-302-2/+0
| | | | Notes: svn path=/head/; revision=67930
* Remove unneeded #include <machine/clock.h>Poul-Henning Kamp2000-10-159-9/+0
| | | | Notes: svn path=/head/; revision=67164
* Remove the #include kitchensink <netatm/kern_include.h> and addPoul-Henning Kamp2000-10-129-9/+182
| | | | | | | | | | | | 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-122-8/+8
| | | | | | | | 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
* Process SPANS ARP requests even if source IP is 0.0.0.0 (or broadcast). ThisMike Spengler2000-01-151-7/+12
| | | | | | | can occur when talking to a Fore host which is using "bonded" interfaces. Notes: svn path=/head/; revision=56062
* Fix a warning (unused variable RCSid)Peter Wemm1999-11-181-1/+1
| | | | Notes: svn path=/head/; revision=53352
* Fixed printf format errors (don't assume that ntohl() returns u_long;Bruce Evans1999-08-291-1/+1
| | | | | | | it returns u_int on i386's and in_addr_t (u_int32_t) on alphas). Notes: svn path=/head/; revision=50557
* $Id$ -> $FreeBSD$Peter Wemm1999-08-2812-22/+22
| | | | Notes: svn path=/head/; revision=50477
* Fix warnings in preparation for adding -Wall -Wcast-qual to theMatthew Dillon1999-01-281-5/+5
| | | | | | | kernel compile Notes: svn path=/head/; revision=43311
* Fix warnings in preparation for adding -Wall -Wcast-qual to theMatthew Dillon1999-01-275-18/+20
| | | | | | | kernel compile Notes: svn path=/head/; revision=43305
* Don't return errors for 'atm show arpserver' command on sigpvc and spansMike Spengler1999-01-191-2/+9
| | | | | | | interfaces. Notes: svn path=/head/; revision=42857
* Examine all occurrences of sprintf(), strcat(), and str[n]cpy()Archie Cobbs1998-12-044-45/+61
| | | | | | | | | | | | | | | | | 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
* Trivial stylish changes, mostly to silence gcc.Poul-Henning Kamp1998-10-319-50/+58
| | | | | | | | 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-176-54/+53
| | | | | | | | | | | Various Makefile related fixes. -Wformat fixes. Submitted by: Mike Spengler <mks@networkcs.com> Notes: svn path=/head/; revision=39412
* Add new files for HARP3Poul-Henning Kamp1998-09-1512-0/+9185
Host ATM Research Platform (HARP), Network Computing Services, Inc. This software was developed with the support of the Defense Advanced Research Projects Agency (DARPA). Notes: svn path=/head/; revision=39232