History log of /freebsd-10.1-release/sbin/atm/
Revision Date Author Comments
272461 03-Oct-2014 gjb

Copy stable/10@r272459 to releng/10.1 as part of
the 10.1-RELEASE process.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


270824 29-Aug-2014 ngie

MFC r270027:

tmconfig compilation when MK_ATM == yes and MK_BSNMP == no

Makefile.inc1:
Always compile gensnmptree with bootstrap-tools when MK_BSNMP != no
instead of depending on a potentially stale tool installed on the build host

sbin/atm/atmconfig/Makefile:
- Always remove oid.h to avoid cluttering up the build/src tree.
- Consolidate all of the RESCUE/MK_BSNMP != no logic under one
conditional to improve readability
- Remove unnecessary ${.OBJDIR} prefixing for oid.h and use ${.TARGET} instead
of spelling out oid.h
- Add a missing DPADD for ${LIBCRYPTO} when compiled MK_BSNMP == yes and
MK_OPENSSL == yes and not compiling for /rescue/rescue

sbin/atm/atmconfig/main.c:
Change #ifndef RESCUE to #ifdef WITH_BSNMP in main.c to make it
clear that we're compiling bsnmp support into atmconfig


256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


228611 17-Dec-2011 dim

In sbin/atm/atmconfig/diag.c, fix a few warnings about format strings
not being literals.

MFC after: 1 week


227081 04-Nov-2011 ed

Add missing static keywords for global variables to tools in sbin/.

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.


226440 16-Oct-2011 cognet

Unbreak NO_DYNAMICROOT by explicitely linking to libcrypto if MK_OPENSSL isn't
set to no, as libbsnmp needs it.


211725 23-Aug-2010 imp

MFtbemd:

Prefer MACHNE_CPUARCH to MACHINE_ARCH in most contexts where you want
to test of all the CPUs of a given family conform.


198236 19-Oct-2009 ru

Switch the default WARNS level for sbin/ to 6.

Submitted by: Ulrich Spörlein


179308 25-May-2008 rwatson

Remove netatm from HEAD as it is not MPSAFE and relies on the now removed
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


171453 14-Jul-2007 rwatson

Disconnect netatm from the build as it is not MPSAFE and relies on
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)


168726 14-Apr-2007 maxim

o IFNAMSIZ includes a terminating null byte.

Submitted by: rdivacky
MFC after: 1 week


165740 02-Jan-2007 rse

fix typo: "adaptor" -> "adapter"


148718 05-Aug-2005 stefanf

Use the C99 syntax for designated initialisers.


145799 02-May-2005 delphij

Cleanups for gcc4:

- Use socklen_t for socket functions
- Remove an unnecessary extern
- Signed/unsigned cleanups

Reviewed by: harti


143617 15-Mar-2005 harti

Forgot to change the pointer to the snmp_atm sources after repo-copy.
Correct this by pointing to the new location.

Pointy hat to: harti

Submitted by: keramida


141851 13-Feb-2005 ru

Expand contractions.


141580 09-Feb-2005 ru

Fixed the misplaced $FreeBSD$.


140415 18-Jan-2005 ru

Sort sections.


138809 13-Dec-2004 obrien

Back the warnings down from 9 to 6, since that is the highest we have. If
we added a WARNS 7 level, it shouldn't be assumed this code will pass it.


133565 12-Aug-2004 harti

Add support for the examination and modification of the devices.
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.


132801 28-Jul-2004 harti

No need to include if_var.h.


132800 28-Jul-2004 harti

Get rid of several unneeded includes (if.h, if_var.h, if_mib.h).


132502 21-Jul-2004 harti

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.


132495 21-Jul-2004 harti

'atmconfig natm show' shows all currently configured PVCs for IP over ATM,
not 'atmconfig natm list'.


132494 21-Jul-2004 harti

Add special lines for 'help commands'.


132493 21-Jul-2004 harti

Allow more than one help file. There is a restriction that
each help file must start with a level 0 topic.


132492 21-Jul-2004 harti

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.


132463 20-Jul-2004 harti

The natm sub-command was missing in the TOC of the helpfile.


131488 02-Jul-2004 ru

Mechanically kill hard sentence breaks.


129357 17-May-2004 ru

Markup overhaul.


129215 14-May-2004 cognet

Use WARNS?=3 for these in the arm case for now, due to toolchain issues.


126643 05-Mar-2004 markm

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


126178 23-Feb-2004 johan

style.Makefile(5):
Use WARNS?= instead of WARNS=.


125670 10-Feb-2004 cperciva

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)


125018 26-Jan-2004 harti

Add support for virtual interfaces. These have no phy chip and, hence, we
need to handle interfaces without phy specially.


124830 22-Jan-2004 grehan

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


123228 07-Dec-2003 imp

Update to reflect eni removal


121676 29-Oct-2003 harti

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.


119172 20-Aug-2003 harti

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


119075 18-Aug-2003 obrien

style.Makefile(5)


119073 18-Aug-2003 obrien

Restore vendor ID's.

Requested by: bde


118824 12-Aug-2003 harti

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).


118772 11-Aug-2003 harti

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


118394 03-Aug-2003 obrien

style.Makefile(5)'ize


118265 31-Jul-2003 harti

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.


118215 30-Jul-2003 harti

Fix the code with respect to the assumption that sizeof(long) == 4.


118214 30-Jul-2003 harti

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.


118213 30-Jul-2003 harti

Make this compile with WARNS=6.


118211 30-Jul-2003 harti

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


118163 29-Jul-2003 harti

Use size_t for buffer sizes. Improve error handling in some places.
Remove a __DECONST() that was needed before this interface cleanup.


118125 28-Jul-2003 harti

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


118107 28-Jul-2003 harti

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


118013 25-Jul-2003 harti

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.


118001 25-Jul-2003 harti

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.


118000 25-Jul-2003 harti

Make ilmid WARNS=6 clean. The problem were a couple of unused function
arguments and missing consts.


117726 18-Jul-2003 harti

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


114512 02-May-2003 obrien

Use size_t type vars in sizeof contexts.


112670 26-Mar-2003 mdodd

- Fix function declarations.
- Provide function prototypes.

Submitted by: trhodes


112667 26-Mar-2003 mdodd

Get rid of a few caddr_t's.

Submitted by: trhodes


112666 26-Mar-2003 mdodd

asn_get_encoded() takes 2 arguments.


112664 26-Mar-2003 mdodd

Retire set_reqid(), unused since 1.2.


112663 26-Mar-2003 mdodd

- Add const qualifier to char * arrays.
- Retire Traps array; this was obsoleted in 1.2


112662 26-Mar-2003 mdodd

Don't roll a private copy of basename().


112645 25-Mar-2003 mdodd

- Replace hexdump() with a prettier version.
- Reformat log output.
- Consolidate PDU printing code into print_pdu().


112640 25-Mar-2003 mdodd

Set pdu->pdulen in build_pdu().


112639 25-Mar-2003 mdodd

Don't compile in lmi_object_instance().


112638 25-Mar-2003 mdodd

- 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>


112637 25-Mar-2003 mdodd

Correct a comment.

Submitted by: Richard Hodges <rh@matriplex.com>


112636 25-Mar-2003 mdodd

- 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>


112632 25-Mar-2003 mdodd

Clean up formatting.

Submitted by: Richard Hodges <rh@matriplex.com>


108533 01-Jan-2003 schweikh

Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,
especially in troff files.


108317 27-Dec-2002 schweikh

english(4) police.


104744 10-Oct-2002 alfred

de-__P()


104347 02-Oct-2002 mdodd

Cast malloc() assignments.


104198 30-Sep-2002 mdodd

- bzero() allocations.
- check for malloc() failures.


104196 30-Sep-2002 mdodd

Turn warnings back on.


99501 06-Jul-2002 charnier

The .Nm utility


97990 07-Jun-2002 mdodd

Use a larger data type to prevent counters wrapping so quickly.
Silence a warning.


97989 07-Jun-2002 mdodd

Sync this up with changes made in v1.8 of sys/netatm/atm_if.h


96767 17-May-2002 arr

- 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.


96766 17-May-2002 arr

- Replace UM_* macros by replacing them with the appropriate function
call. These changes are similar to the ones made to atmarpd and scsp.


87325 04-Dec-2001 obrien

Default to WARNS=2.
Binary builds that cannot handle this must explicitly set WARNS=0.

Reviewed by: mike


85473 25-Oct-2001 ru

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.


79754 15-Jul-2001 dd

Remove whitespace at EOL.


74815 26-Mar-2001 ru

- Backout botched attempt to introduce MANSECT feature.
- MAN[1-9] -> MAN.


74531 20-Mar-2001 ru

Set the default manual section for sbin/ to 8.


73427 04-Mar-2001 kris

Correct grammar in comment.


72089 06-Feb-2001 asmodai

Fix typo: seperate -> separate.

Seperate does not exist in the english language.

Submitted to look at by: kris


71378 22-Jan-2001 ru

man(7) -> mdoc(7).


69793 09-Dec-2000 obrien

Add `_PATH_DEVZERO'.
Use _PATH_* where where possible.


59867 01-May-2000 asmodai

Remove unused #include.


59864 01-May-2000 asmodai

Remove unused #include.


58631 26-Mar-2000 charnier

1000000 usec -> 1 sec 0 usec; fix


58172 17-Mar-2000 phk

Make the fore_dnld program more robust and reliable.

In particular HZ=1000 would seem to break it before.


57668 01-Mar-2000 sheldonh

Remove single-space hard sentence breaks. These degrade the quality
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.


57229 15-Feb-2000 phk

With the kind permission of Marconi Communications (Formerly "Fore Communication"
include a copy of the 3.0.1 firmware for the PCA200E card in the fore_dnld
program.

There are various and subtle compatibility issues between the hfa driver and
the microcode, this version is belived to work best.

If a file is specified on the command line it will be used instead of the
embedded image.

Approved by: jkh


56059 15-Jan-2000 mks

Handle GetResponse errors correctly.


50476 28-Aug-1999 peter

$Id$ -> $FreeBSD$


48419 01-Jul-1999 mks

Modify code to be -Wall'able.

PR: bin/11315


47441 23-May-1999 imp

Getopt(3) returns -1 not EOF.


42908 20-Jan-1999 mks

Clarify the number of network interfaces per physical interface available with
each type of signalling manager and bring the atm command into agreement with
the man page.


42871 20-Jan-1999 mks

Re-write of ilmi daemon. Among the major changes, it does not use predefined
PDUs and should handle multi-request OIDs on GETs.


40765 30-Oct-1998 dg

Rename a function name so that it doesn't conflict with a future system call.


39412 17-Sep-1998 phk

Two patches from the HARP people:

Various Makefile related fixes.

-Wformat fixes.

Submitted by: Mike Spengler <mks@networkcs.com>


39290 15-Sep-1998 phk

Remove blank after -I


39232 15-Sep-1998 phk

Add new files for HARP3

Host ATM Research Platform (HARP), Network Computing Services, Inc.
This software was developed with the support of the Defense Advanced
Research Projects Agency (DARPA).