summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsnmpd
Commit message (Collapse)AuthorAgeFilesLines
* Link pf 4.1 to the build:mlaier2007-07-031-26/+25
| | | | | | | | - move ftp-proxy from libexec to usr.sbin - add tftp-proxy - new altq mtag link Approved by: re (kensmith)
* - Bump share library version which were missed in last bumprafan2007-06-181-1/+1
| | | | | | Reported by: jhb Discussed with: deischen, des, doubg, harti Approved by: re (kensmith)
* s/destory/destroy/ (except for the code in contrib/).pjd2007-04-161-1/+1
|
* ! is a generic info messagexride2007-03-091-0/+1
| | | | | | Reviewed by: harti Approved by: harti MFC after: 2 weeks
* Remove all #if __FreeBSD_version checks now that RSTP support has beensyrinx2007-02-041-32/+2
| | | | | | | MFCed to RELENG_6. We no longer need that to compile the bridge module under both RELENG_6 and CURRENT. Approved by: bz (mentor)
* Re-connect snmp_bridge to the build. It survived a make universebz2006-12-291-0/+1
| | | | (apart from powerpc where the build broke earlier).
* bridge_snmp.hbz2006-12-293-75/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | * Change the API of bridge_get_basemac to take a maximum buffer length. bridge_if.c * Adopt to new API. * In bridge_attach_newif() remove an additional pointer to the buffer by shuffling the code a bit. Also makes the code more readable. bridge_sys.c * bridge_get_basemac(): - Adopt to the new API. - Change check for error code of getifaddrs(). - First check for sa_family != AF_LINK. - Copy sockaddr_dl * to get around alignment constraints on some platforms. - Use strcmp instead of strncmp so that "foo11" != "foo1". * other functions: - Allocate n times of the struct we need instead of arbitrary len, cast to the type we want it to be and pass around struct *s instead of char *s. This gets us around alignment restrictions on some platforms and in addition it is more clear what data is passed around. - Name variables for same types consistently. Reviewed by: syrinx
* ia64 is nit-picking according to tinderbox so temporary disconnectbz2006-12-211-1/+0
| | | | the bridge module from the build until this is fixed.
* Connect the snmp_bridge(3) module to the build.syrinx2006-12-201-0/+1
| | | | Approved by: bz (mentor)
* Keep in sync with the if_bridge(4) module (rev. 1.20 if_bridgevar.h,syrinx2006-12-203-36/+36
| | | | | | | 1.12 bridgestp.h) and rename all PointToPoint related variables from P2P to PTP (s/P2P/PTP/g s/p2p/ptp/g). Approved by: bz (mentor)
* Remove an unused variable.syrinx2006-12-201-1/+0
| | | | Approved by: bz (mentor)
* Do not add 'default:' cases inside a switch() on an enum like thesyrinx2006-12-156-417/+498
| | | | | | | | | | | | | | | | | SNMP option argument. That way the compiler will give a warning in case of a missing or an extra but unknown 'case:'. Do the same for SNMP LEAF objects to be prepared once gensnmptree will auto-generate enums for those too. Add an abort() after the switch() instead of the 'default:' to catch any errors. The nice side effect is that the compiler will correctly track supposed to be 'uninitialized' variables with that. When trying to set a value sanity check it before calling the OS dependent API of snmp_bridge to tell whether it is an attempt to set a bad value or a general error. Suggested by: harti (first part) Approved by: bz (mentor)
* Instead of explicitly initializing variables to avoid compiler warnings,syrinx2006-12-093-16/+42
| | | | | | | | | | | | | add a default case to handle the situation when the variables are not initialized. Furthermore, abort() if the snmp agent passes an invalid option to the bridge module. As the option (SET, GET, GETNEXT, COMMIT, ROLLBACK) is determined by the snmp agent based on the operation requested by user, this behaviour is unlikely to be abused as a source for a DoS, but if ever hit will likely reveal a problem in the snmp agent or bridge module. Approved by: bz (mentor)
* Add support for RSTP (RFC4318) to the SNMP bridge monitoring module.syrinx2006-12-0710-47/+1170
| | | | Approved by: bz (mentor)
* Bring in a SNMP module to support monitoring if_bridge(4) interfacessyrinx2006-11-1912-0/+7979
| | | | | | | | | via bsnmpd(1). The module implements IETF BRIDGE-MIB as defined in RFC4188 and a private BEGEMOT-BRIDGE-MIB. Sponsored by: Google Summer of Code 2006 Reviewed by: bz Approved by: bz (mentor)
* Make the generated oid.h dependend on the Makefile. The Makefile definesharti2006-11-081-2/+2
| | | | | the symbols to be extracted from the MIB and if that list of symbols is changed, oid.h should be re-generated.
* Fix buildworld.glebius2006-10-311-1/+2
|
* Revise markup.ru2006-09-301-11/+14
|
* Reduce the memory requirements for the tables by (1) using malloced stringsharti2006-07-1411-282/+604
| | | | | | | | | instead of maximum sized arrays embedded in the table structures and (2) using pointers to constant oids instead of copying the oid into each table structure. This also fixes indexing in the case when a string used for indexing is longer than the maximum size allowed in the MIB. Submitted by: Victor Cruceru <soc-victor@>
* Add missing library dependencies.ru2006-04-131-1/+1
|
* Reimplementation of world/kernel build options. For details, see:ru2006-03-171-1/+3
| | | | | | | | http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html The src.conf(5) manpage is to follow in a few days. Brought to you by: imp, jhb, kris, phk, ru (all bugs are mine)
* Silence some warnings by defining configuration preprocessor symbols.harti2006-03-131-1/+1
|
* A bandaid to unbreak world.ru2006-02-271-0/+1
|
* Link the new file from the vendor fix to the build and installharti2006-02-131-3/+8
| | | | the new MIB files. Add a target to smilint the MIB files.
* Expand contractions.joel2006-02-011-1/+1
|
* After changing hostres from libdisk to libgeom, it now compileserwin2006-01-261-5/+1
| | | | | | | and runs on amd64, so revert the stopgap from rev. 1.10 Approved by: harti Hardware borrowed from: simon
* Replace ki_ocomm by ki_comm. The former will go away.harti2006-01-262-5/+5
| | | | | Submitted by: Victor Cruceru <soc-victor> Suggested by: Julian Elischer
* Fix a bug in the processor load code: the wrong process was used toharti2006-01-261-3/+3
| | | | get the inital processor load. Also fix compilation on sparc64 without NDEBUG.
* Fix false positives when searching for disks. Things like adv(4) are notharti2006-01-261-0/+9
| | | | | | disks. Submitted by: Victor Cruceru <soc-victor@>
* Fix the MIB to use libgeom instead of libdisk.harti2006-01-263-48/+170
| | | | Submitted by: Victor Cruceru <soc-victor>
* Unbreak the AMD64 build by forgoing the 'snmp_hostres' functionality.obrien2006-01-131-1/+5
| | | | Approved by: harti
* Fix build without -DNDEBUG.harti2006-01-123-7/+7
| | | | Spotted by: obrien
* assert(3) is not used here.obrien2006-01-121-1/+0
|
* Connect the HOSTRES MIB to the build.harti2006-01-091-0/+1
|
* msgharti2006-01-0918-0/+7005
|
* Check for altq presence during module init, and allow module to work even ifphilip2005-11-301-2/+47
| | | | | | | | altq is not present (just disable the altq bits in that case). PR: 89601 Submitted by: Juraj Lutter <otis -at- sk.freebsd.org> MFC after: 3 days
* Fix prototypes.ru2005-11-241-8/+8
|
* Use the new bsd.snmpmod.mk makefile to build the modules. The -I pointersharti2005-11-105-38/+10
| | | | | | into the contrib directory are still necessary for some of the Makefiles, because the C-sources there use non-canonical includes ("" includes) to get at the header files.
* Use the canonical include name for snmpmod.h. The build infrastructure takesharti2005-11-101-1/+1
| | | | | already care to pick up the correct version of the file depending on how we build.
* Catch up with the import of bsnmp-1.11. Add a couple of newharti2005-10-043-1/+6
| | | | configuration flags to CFLAGS.
* Fix unhandled malloc errors.philip2005-08-291-9/+54
| | | | | | | PR: bin/83467 Submitted by: Dan Lukes <dan -at- obluda.cz> Prodded by: glebius MFC after: 3 days
* Fix all the spelling mistakes I could find in the man pages for wordskeramida2005-07-311-7/+7
| | | | | | | | that have at least 3 characters. MFC after: 1 week Thanks to: Music band ``Chingon'' for keeping me company while searching for these.
* Bump the shared library version number of all libraries that have notkensmith2005-07-221-1/+1
| | | | | | | been bumped since RELENG_5. Reviewed by: ru Approved by: re (not needed for commit check but in principle...)
* No need to specify the include subdirectory. During buildworld theharti2005-05-251-1/+1
| | | | | | correct files are included from a temp. include directory. Explained by: ru
* This module was wrongly including header from /usr/include. Give itharti2005-05-231-1/+1
| | | | the correct path to the source headers.
* Catch up with the bsnmpd daemon's 64bit time ticks.philip2005-05-231-1/+1
|
* The ticks delivered by the SNMP daemon are now 64-bit, so make ourharti2005-05-231-1/+1
| | | | | local tick variable which is used to reduce the number of updates from kernel structures and to ensure intra-PDU consistency also 64 bit.
* Bump the shared library version number of the modules because ofharti2005-05-231-1/+1
| | | | changes in the module interface.
* Enable tcp-wrapper support in the SNMP daemon.harti2005-04-261-1/+2
| | | | Submitted by: glebius
* time_t is signed, so s/uintmax_t/intmax_t/g. Has anyone got an extra pointyphilip2005-03-151-6/+6
| | | | | | | hat for me? I'm running out of them. Spotted by: des Pointy hat to: philip
OpenPOWER on IntegriCloud