Dimitry Andric
5323d72245
In sbin/atm/atmconfig/diag.c, fix a few warnings about format strings
...
not being literals.
MFC after: 1 week
2011-12-17 00:26:45 +00:00
Ed Schouten
1efe3c6b58
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.
2011-11-04 13:36:02 +00:00
Olivier Houchard
10f94f86f5
Unbreak NO_DYNAMICROOT by explicitely linking to libcrypto if MK_OPENSSL isn't
...
set to no, as libbsnmp needs it.
2011-10-16 16:58:28 +00:00
Warner Losh
25faff346c
MFtbemd:
...
Prefer MACHNE_CPUARCH to MACHINE_ARCH in most contexts where you want
to test of all the CPUs of a given family conform.
2010-08-23 22:24:11 +00:00
Ruslan Ermilov
106d839190
Switch the default WARNS level for sbin/ to 6.
...
Submitted by: Ulrich Spörlein
2009-10-19 16:00:24 +00:00
Maxim Konovalov
fd31a32a65
o IFNAMSIZ includes a terminating null byte.
...
Submitted by: rdivacky
MFC after: 1 week
2007-04-14 16:09:23 +00:00
Stefan Farfeleder
435071dff3
Use the C99 syntax for designated initialisers.
2005-08-05 07:33:50 +00:00
Xin LI
d2b67fd0e8
Cleanups for gcc4:
...
- Use socklen_t for socket functions
- Remove an unnecessary extern
- Signed/unsigned cleanups
Reviewed by: harti
2005-05-02 10:31:27 +00:00
Hartmut Brandt
291aa5d7f7
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
2005-03-15 07:38:15 +00:00
David E. O'Brien
b8e19b78df
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.
2004-12-13 15:42:46 +00:00
Hartmut Brandt
ca0f4b1dba
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.
2004-08-12 12:31:43 +00:00
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
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
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
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
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