summaryrefslogtreecommitdiffstats
path: root/sbin/atm
Commit message (Collapse)AuthorAgeFilesLines
* In sbin/atm/atmconfig/diag.c, fix a few warnings about format stringsdim2011-12-171-4/+4
| | | | | | not being literals. MFC after: 1 week
* Add missing static keywords for global variables to tools in sbin/.ed2011-11-043-3/+3
| | | | | | These tools declare global variables without using the static keyword, even though their use is limited to a single C-file, or without placing an extern declaration of them in the proper header file.
* Unbreak NO_DYNAMICROOT by explicitely linking to libcrypto if MK_OPENSSL isn'tcognet2011-10-161-0/+5
| | | | set to no, as libbsnmp needs it.
* MFtbemd:imp2010-08-231-1/+2
| | | | | Prefer MACHNE_CPUARCH to MACHINE_ARCH in most contexts where you want to test of all the CPUs of a given family conform.
* Switch the default WARNS level for sbin/ to 6.ru2009-10-191-2/+0
| | | | Submitted by: Ulrich Spörlein
* Remove netatm from HEAD as it is not MPSAFE and relies on the now removedrwatson2008-05-2519-14522/+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
* Disconnect netatm from the build as it is not MPSAFE and relies onrwatson2007-07-141-4/+6
| | | | | | | | | | | | | | | | | | | | NET_NEEDS_GIANT, which will shortly be removed. This is done in a away that it may be easily reattached to the build before 7.1 if appropriate locking is added. Specifics: - Don't install netatm include files - Disconnect netatm command line management tools - Don't build libatm - Don't include ATM parts in rescue or sysinstall - Don't install sample configuration files and documents - Don't build kernel support as a module or in NOTES - Don't build netgraph wrapper nodes for netatm This removes the last remaining consumer of NET_NEEDS_GIANT. Reviewed by: harti Discussed with: bz, bms Approved by: re (kensmith)
* o IFNAMSIZ includes a terminating null byte.maxim2007-04-141-1/+1
| | | | | Submitted by: rdivacky MFC after: 1 week
* fix typo: "adaptor" -> "adapter"rse2007-01-021-1/+1
|
* Use the C99 syntax for designated initialisers.stefanf2005-08-051-8/+8
|
* Cleanups for gcc4:delphij2005-05-023-4/+3
| | | | | | | | - Use socklen_t for socket functions - Remove an unnecessary extern - Signed/unsigned cleanups Reviewed by: harti
* Forgot to change the pointer to the snmp_atm sources after repo-copy.harti2005-03-151-1/+1
| | | | | | | | Correct this by pointing to the new location. Pointy hat to: harti Submitted by: keramida
* Expand contractions.ru2005-02-131-1/+1
|
* Fixed the misplaced $FreeBSD$.ru2005-02-092-4/+2
|
* Sort sections.ru2005-01-182-5/+5
|
* Back the warnings down from 9 to 6, since that is the highest we have. Ifobrien2004-12-131-1/+1
| | | | we added a WARNS 7 level, it shouldn't be assumed this code will pass it.
* Add support for the examination and modification of the devices.harti2004-08-129-8/+817
| | | | | | This is implemented through SNMP and requires the ilmi daemon to run on the system. To prevent bloat in rescue the atmconfig for rescue is compiled without this stuff.
* No need to include if_var.h.harti2004-07-281-1/+0
|
* Get rid of several unneeded includes (if.h, if_var.h, if_mib.h).harti2004-07-281-3/+0
|
* The media info is printed with the -hardware option so there is noharti2004-07-211-1/+1
| | | | point to write 'Media' in the table header for the -atm option.
* 'atmconfig natm show' shows all currently configured PVCs for IP over ATM,harti2004-07-211-1/+1
| | | | not 'atmconfig natm list'.
* Add special lines for 'help commands'.harti2004-07-211-4/+7
|
* Allow more than one help file. There is a restriction thatharti2004-07-211-74/+289
| | | | each help file must start with a level 0 topic.
* Allow the help file path and name to be overwritten by cc -D...harti2004-07-212-1/+9
| | | | | Also remove the current directory from the default help file path and add an appropriate directory in /usr/local instead.
* The natm sub-command was missing in the TOC of the helpfile.harti2004-07-201-0/+1
|
* Mechanically kill hard sentence breaks.ru2004-07-021-1/+2
|
* Markup overhaul.ru2004-05-171-88/+75
|
* Use WARNS?=3 for these in the arm case for now, due to toolchain issues.cognet2004-05-143-0/+15
|
* Make NULL a (void*)0 whereever possible, and fix the warnings(-Werror)markm2004-03-051-1/+1
| | | | | | | | | | | | | | | that this provokes. "Wherever possible" means "In the kernel OR NOT C++" (implying C). There are places where (void *) pointers are not valid, such as for function pointers, but in the special case of (void *)0, agreement settles on it being OK. Most of the fixes were NULL where an integer zero was needed; many of the fixes were NULL where ascii <nul> ('\0') was needed, and a few were just "other". Tested on: i386 sparc64
* style.Makefile(5):johan2004-02-231-1/+1
| | | | Use WARNS?= instead of WARNS=.
* style cleanup: Remove duplicate $FreeBSD$ tags.cperciva2004-02-109-27/+0
| | | | | | | | These files had tags after the copyright notice, inside the comment block (incorrect, removed), and outside the comment block (correct). Approved by: rwatson (mentor)
* Add support for virtual interfaces. These have no phy chip and, hence, weharti2004-01-262-17/+60
| | | | need to handle interfaces without phy specially.
* Userland signed char fixes for PPC build. Problems were using a chargrehan2004-01-221-2/+1
| | | | | | | | | return for getopt() and comparing to -1, ditto with fgetc() and EOF, and using the kg_nice value from <sys/user.h> Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at> Reviewed by: obrien, bde (a while back) Tested lightly on: ppc, i386, make universe
* Update to reflect eni removalimp2003-12-074-442/+1
|
* Defer allocation of the actual receive mbuf until the external bufferharti2003-10-291-0/+1
| | | | | | | | | | is returned from the card to the driver. Add a counter that shows how many times this allocation has failed. Note, that we could even further delay the allocation of the mbuf until we know, that we need it (there are no receive errors and the connection is open). This will be done in a later commit. Print the new statistics field in atmconfig.
* Get rid of a __DECONST by strdup'ing the string in question. Whenharti2003-08-201-1/+2
| | | | | | | called this way the program just prints its help intro, so the memory leak is not a problem. Pointed out by: bde
* style.Makefile(5)obrien2003-08-181-4/+3
|
* Restore vendor ID's.obrien2003-08-185-9/+10
| | | | Requested by: bde
* Add a program for configuration of the ATM drivers and the IP over ATMharti2003-08-1210-0/+3017
| | | | | | stuff. This utility allows inspection of the ATM characteristics, the PHY layer, including statistics of both, the retrival of the list of currently open channels and also allows access to utopia(4).
* Add the new arguments for the add pvc command to the help information.harti2003-08-111-1/+3
| | | | | | | Correct a comment. Submitted by: Vincent Jardin <vjardin@wanadoo.fr> MFC after: 3 days
* style.Makefile(5)'izeobrien2003-08-035-32/+15
|
* Make firmware version 4.1.12 the default for download to PCA-200E adapters.harti2003-07-313-11/+2073
| | | | | | | | | The old firmware (3.0.1) can still be used by specifying the '-3' option to fore_dnld. Document the -r option that resets the adapter prior to the download. Ther newer firmware version allows traffic shaping.
* Fix the code with respect to the assumption that sizeof(long) == 4.harti2003-07-301-32/+32
|
* Fix what was a common idiom in PDP-11 days: declare a local int andharti2003-07-301-2/+2
| | | | | use the address of that int for read(2). While this happens to work on LE, it surely is wrong on BE.
* Make this compile with WARNS=6.harti2003-07-302-102/+78
|
* Fix warnings: a variable that was unused, a variable thatharti2003-07-301-4/+3
| | | | | | | | | was unused unless sun was defined and printing of u_longs with %x. PR: bin/39818 Submitted by: dan@obluda.cz MFC after: 1 week
* Use size_t for buffer sizes. Improve error handling in some places.harti2003-07-298-148/+117
| | | | Remove a __DECONST() that was needed before this interface cleanup.
* Add support for CBR and VBR PVCs. Enhance the error handling forharti2003-07-283-39/+159
| | | | | | | the 'add pvc' command. Submitted by: Vincent Jardin <vjardin@wanadoo.fr> MFC after: 2 weeks
* Make atm WARNS=6 clean. The changes are mostly:harti2003-07-2810-382/+299
| | | | | | | | | | | - remove some instances of __P() - use real prototypes and un-K&R function headers - constify where necessary (mostly strings and structures containing strings) - make functions and variables static that need not to be global - tag unused function parameters as __unused Testing: a fresh universe
* When deciding whether to download the microcode or not look at the API ratherharti2003-07-251-1/+1
| | | | | | | | than at the vendor. We have three different Fore cards and only the PCA200 need the microcode. Look also at the RAM address and load the code only if it is not zero. A zero RAM address means either a bug in the driver or this is a interface created by harp(4) in which case fatm(4) handles the microcode issue.
OpenPOWER on IntegriCloud