summaryrefslogtreecommitdiffstats
path: root/sbin/atm
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Due to a gcc bug, it doesn't like local variables with names like 'sin'.harti2003-07-251-3/+3
| | | | Rename this for the moment. Also fix a sparc64 alignment warning.
* Make ilmid WARNS=6 clean. The problem were a couple of unused functionharti2003-07-252-14/+14
| | | | arguments and missing consts.
* Don't call print_pdu() when we are not debugging. This would resultharti2003-07-181-1/+2
| | | | | | | in calling fprintf() with a NULL fp. Strange enough this didn't result in cores in stable, but results in cores now. MFC after: 2 weeks
* Use size_t type vars in sizeof contexts.obrien2003-05-021-3/+3
|
* - Fix function declarations.mdodd2003-03-261-122/+107
| | | | | | - Provide function prototypes. Submitted by: trhodes
* Get rid of a few caddr_t's.mdodd2003-03-261-8/+8
| | | | Submitted by: trhodes
* asn_get_encoded() takes 2 arguments.mdodd2003-03-261-1/+1
|
OpenPOWER on IntegriCloud