Commit Graph

86 Commits

Author SHA1 Message Date
Hartmut Brandt
70f920e023 No need to include if_var.h. 2004-07-28 16:34:42 +00:00
Hartmut Brandt
125469a3d8 Get rid of several unneeded includes (if.h, if_var.h, if_mib.h). 2004-07-28 16:32:17 +00:00
Hartmut Brandt
5f4616cc9a The media info is printed with the -hardware option so there is no
point to write 'Media' in the table header for the -atm option.
2004-07-21 14:52:21 +00:00
Hartmut Brandt
09894ffcc3 'atmconfig natm show' shows all currently configured PVCs for IP over ATM,
not 'atmconfig natm list'.
2004-07-21 09:44:27 +00:00
Hartmut Brandt
bf8ac32448 Add special lines for 'help commands'. 2004-07-21 09:43:31 +00:00
Hartmut Brandt
ce4efb1f64 Allow more than one help file. There is a restriction that
each help file must start with a level 0 topic.
2004-07-21 09:42:56 +00:00
Hartmut Brandt
44a5a59081 Allow the help file path and name to be overwritten by cc -D...
Also remove the current directory from the default help file path
and add an appropriate directory in /usr/local instead.
2004-07-21 09:39:53 +00:00
Hartmut Brandt
01f679a25f The natm sub-command was missing in the TOC of the helpfile. 2004-07-20 16:50:57 +00:00
Ruslan Ermilov
9806e23132 Mechanically kill hard sentence breaks. 2004-07-02 21:45:06 +00:00
Ruslan Ermilov
556995c8d0 Markup overhaul. 2004-05-17 20:45:21 +00:00
Olivier Houchard
c1b2de5af0 Use WARNS?=3 for these in the arm case for now, due to toolchain issues. 2004-05-14 13:31:21 +00:00
Mark Murray
16fc3635f7 Make NULL a (void*)0 whereever possible, and fix the warnings(-Werror)
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
2004-03-05 08:10:19 +00:00
Johan Karlsson
604d24db95 style.Makefile(5):
Use WARNS?= instead of WARNS=.
2004-02-23 20:25:27 +00:00
Colin Percival
1b49e5051e style cleanup: Remove duplicate $FreeBSD$ tags.
These files had tags after the copyright notice,
inside the comment block (incorrect, removed),
and outside the comment block (correct).

Approved by:	rwatson (mentor)
2004-02-10 20:48:08 +00:00
Hartmut Brandt
f94e15b224 Add support for virtual interfaces. These have no phy chip and, hence, we
need to handle interfaces without phy specially.
2004-01-26 12:17:49 +00:00
Peter Grehan
5cfe0423e6 Userland signed char fixes for PPC build. Problems were using a char
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
2004-01-22 07:23:36 +00:00
Warner Losh
172293effe Update to reflect eni removal 2003-12-07 08:04:05 +00:00
Hartmut Brandt
7672807356 Defer allocation of the actual receive mbuf until the external buffer
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.
2003-10-29 13:14:39 +00:00
Hartmut Brandt
70b6366edd Get rid of a __DECONST by strdup'ing the string in question. When
called this way the program just prints its help intro, so the
memory leak is not a problem.

Pointed out by: bde
2003-08-20 08:25:36 +00:00
David E. O'Brien
7ac81ce4b8 style.Makefile(5) 2003-08-18 15:35:18 +00:00
David E. O'Brien
8d0486e2f4 Restore vendor ID's.
Requested by:	bde
2003-08-18 15:32:16 +00:00
Hartmut Brandt
791a6fe762 Add a program for configuration of the ATM drivers and the IP over ATM
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).
2003-08-12 14:25:57 +00:00
Hartmut Brandt
342c29936d Add the new arguments for the add pvc command to the help information.
Correct a comment.

Submitted by:	Vincent Jardin <vjardin@wanadoo.fr>
MFC after:	3 days
2003-08-11 07:14:10 +00:00
David E. O'Brien
fecc076451 style.Makefile(5)'ize 2003-08-03 15:17:28 +00:00
Hartmut Brandt
fac5c31769 Make firmware version 4.1.12 the default for download to PCA-200E adapters.
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.
2003-07-31 14:26:07 +00:00
Hartmut Brandt
16a81ac7aa Fix the code with respect to the assumption that sizeof(long) == 4. 2003-07-30 16:15:49 +00:00
Hartmut Brandt
82817dd82d Fix what was a common idiom in PDP-11 days: declare a local int and
use the address of that int for read(2). While this happens to work on
LE, it surely is wrong on BE.
2003-07-30 16:02:50 +00:00
Hartmut Brandt
9ecbee467c Make this compile with WARNS=6. 2003-07-30 15:58:08 +00:00
Hartmut Brandt
81681144c2 Fix warnings: a variable that was unused, a variable that
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
2003-07-30 14:56:25 +00:00
Hartmut Brandt
c7185249d7 Use size_t for buffer sizes. Improve error handling in some places.
Remove a __DECONST() that was needed before this interface cleanup.
2003-07-29 13:37:04 +00:00
Hartmut Brandt
239a15f305 Add support for CBR and VBR PVCs. Enhance the error handling for
the 'add pvc' command.

Submitted by:	Vincent Jardin <vjardin@wanadoo.fr>
MFC after:	2 weeks
2003-07-28 15:27:12 +00:00
Hartmut Brandt
24dd3413f5 Make atm WARNS=6 clean. The changes are mostly:
- 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
2003-07-28 08:14:27 +00:00
Hartmut Brandt
ec6d8361cd When deciding whether to download the microcode or not look at the API rather
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.
2003-07-25 12:40:03 +00:00
Hartmut Brandt
ec3770a91a Due to a gcc bug, it doesn't like local variables with names like 'sin'.
Rename this for the moment. Also fix a sparc64 alignment warning.
2003-07-25 08:15:09 +00:00
Hartmut Brandt
bf6da6238b Make ilmid WARNS=6 clean. The problem were a couple of unused function
arguments and missing consts.
2003-07-25 08:09:18 +00:00
Hartmut Brandt
a0f1a723a2 Don't call print_pdu() when we are not debugging. This would result
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
2003-07-18 11:17:04 +00:00
David E. O'Brien
eb56700bbb Use size_t type vars in sizeof contexts. 2003-05-02 06:46:24 +00:00
Matthew N. Dodd
229503da84 - Fix function declarations.
- Provide function prototypes.

Submitted by:	 trhodes
2003-03-26 05:49:42 +00:00
Matthew N. Dodd
15d8f3d447 Get rid of a few caddr_t's.
Submitted by:	 trhodes
2003-03-26 04:17:13 +00:00
Matthew N. Dodd
2dc4ca43ec asn_get_encoded() takes 2 arguments. 2003-03-26 04:02:51 +00:00
Matthew N. Dodd
6410552316 Retire set_reqid(), unused since 1.2. 2003-03-26 03:41:12 +00:00
Matthew N. Dodd
87b6469f1e - Add const qualifier to char * arrays.
- Retire Traps array; this was obsoleted in 1.2
2003-03-26 03:19:56 +00:00
Matthew N. Dodd
6181d229c2 Don't roll a private copy of basename(). 2003-03-26 02:54:56 +00:00
Matthew N. Dodd
4b9ffcd528 - Replace hexdump() with a prettier version.
- Reformat log output.
- Consolidate PDU printing code into print_pdu().
2003-03-25 22:22:19 +00:00
Matthew N. Dodd
f1c661f9ac Set pdu->pdulen in build_pdu(). 2003-03-25 22:10:01 +00:00
Matthew N. Dodd
86dc60e032 Don't compile in lmi_object_instance(). 2003-03-25 22:01:27 +00:00
Matthew N. Dodd
d66e94ca99 - Handle the 'GET PREFIX' request.
- Deal with MADGE_OBJECT1 requests.
- Move code inside of switch cases to separate functions.

Submitted by:	 Richard Hodges <rh@matriplex.com>
2003-03-25 20:34:46 +00:00
Matthew N. Dodd
a5454382a3 Correct a comment.
Submitted by:	 Richard Hodges <rh@matriplex.com>
2003-03-25 20:25:05 +00:00
Matthew N. Dodd
beeb9061d9 - Add a comment regarding SETPFX_OBJID
- Add an Objid definition for MADGE_OBJECT1
- Add an array to map ilmi_states to ASCII descriptions.

Submitted by:	 Richard Hodges <rh@matriplex.com>
2003-03-25 20:22:02 +00:00
Matthew N. Dodd
b88dc3353a Clean up formatting.
Submitted by:	 Richard Hodges <rh@matriplex.com>
2003-03-25 20:15:01 +00:00