Commit Graph

72 Commits

Author SHA1 Message Date
harti
1c4af17092 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
grehan
17b9201288 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
imp
cb2936e9e2 Update to reflect eni removal 2003-12-07 08:04:05 +00:00
harti
a335e56845 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
harti
fb2139bef8 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
obrien
36f2112c2d style.Makefile(5) 2003-08-18 15:35:18 +00:00
obrien
3f57daa44e Restore vendor ID's.
Requested by:	bde
2003-08-18 15:32:16 +00:00
harti
6f042896db 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
harti
0a8e1983d3 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
obrien
fec0a6a2ee style.Makefile(5)'ize 2003-08-03 15:17:28 +00:00
harti
345797b768 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
harti
9148b94141 Fix the code with respect to the assumption that sizeof(long) == 4. 2003-07-30 16:15:49 +00:00
harti
24872097b0 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
harti
17dc454310 Make this compile with WARNS=6. 2003-07-30 15:58:08 +00:00
harti
fbab5c5d7a 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
harti
519da382d2 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
harti
bf1661867a 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
harti
90b9d9dfb4 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
harti
512df2a789 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
harti
5d4231fe03 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
harti
87a7a187f8 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
harti
14d46d5fe2 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
obrien
8bd5fb7350 Use size_t type vars in sizeof contexts. 2003-05-02 06:46:24 +00:00
mdodd
9f67ffeef1 - Fix function declarations.
- Provide function prototypes.

Submitted by:	 trhodes
2003-03-26 05:49:42 +00:00
mdodd
6c9dfe39cf Get rid of a few caddr_t's.
Submitted by:	 trhodes
2003-03-26 04:17:13 +00:00
mdodd
4181dd8083 asn_get_encoded() takes 2 arguments. 2003-03-26 04:02:51 +00:00
mdodd
b00824fd41 Retire set_reqid(), unused since 1.2. 2003-03-26 03:41:12 +00:00
mdodd
b9fc46be67 - Add const qualifier to char * arrays.
- Retire Traps array; this was obsoleted in 1.2
2003-03-26 03:19:56 +00:00
mdodd
d26ca79b24 Don't roll a private copy of basename(). 2003-03-26 02:54:56 +00:00
mdodd
b52304cca8 - Replace hexdump() with a prettier version.
- Reformat log output.
- Consolidate PDU printing code into print_pdu().
2003-03-25 22:22:19 +00:00
mdodd
bd9b776867 Set pdu->pdulen in build_pdu(). 2003-03-25 22:10:01 +00:00
mdodd
5f77967d0f Don't compile in lmi_object_instance(). 2003-03-25 22:01:27 +00:00
mdodd
adb6da8bbd - 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
mdodd
aa8275c925 Correct a comment.
Submitted by:	 Richard Hodges <rh@matriplex.com>
2003-03-25 20:25:05 +00:00
mdodd
dd3514d547 - 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
mdodd
dc1289423a Clean up formatting.
Submitted by:	 Richard Hodges <rh@matriplex.com>
2003-03-25 20:15:01 +00:00
schweikh
c353aec149 Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,
especially in troff files.
2003-01-01 18:49:04 +00:00
schweikh
2505bee728 english(4) police. 2002-12-27 12:15:40 +00:00
alfred
fa576c1371 de-__P() 2002-10-10 00:32:55 +00:00
mdodd
6cdfc2c118 Cast malloc() assignments. 2002-10-02 06:24:19 +00:00
mdodd
a7cdba2459 - bzero() allocations.
- check for malloc() failures.
2002-09-30 09:00:03 +00:00
mdodd
f181964131 Turn warnings back on. 2002-09-30 08:59:16 +00:00
charnier
548d38d27c The .Nm utility 2002-07-06 19:34:18 +00:00
mdodd
6d40c530ce Use a larger data type to prevent counters wrapping so quickly.
Silence a warning.
2002-06-07 05:29:13 +00:00
mdodd
0bb81d8133 Sync this up with changes made in v1.8 of sys/netatm/atm_if.h 2002-06-07 05:25:10 +00:00
arr
6f90247d1e - Further replacing of UM_* macros with the appropriate function call. I
am fairly certain that this should do it and that I may now remove the
  UM_ macros from port.h.  I will, however, wait a few days to ensure
  that these can be safely removed.
2002-05-17 00:30:06 +00:00
arr
0b16ceccb6 - Replace UM_* macros by replacing them with the appropriate function
call.  These changes are similar to the ones made to atmarpd and scsp.
2002-05-17 00:20:40 +00:00
obrien
a537f22ad4 Default to WARNS=2.
Binary builds that cannot handle this must explicitly set WARNS=0.

Reviewed by:	mike
2001-12-04 02:19:58 +00:00
ru
f16b8667c4 The directory of the makefile that's including the file is tried first.
See section 3.2 of "PMake - A Tutorial" in /usr/share/doc/psd/12.make.
2001-10-25 08:37:12 +00:00
dd
c49a4e6620 Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00