summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsnmpd
Commit message (Collapse)AuthorAgeFilesLines
* Fix typos, spelling, formatting and mdoc mistakes found by Nobuyuki whilejoel2010-08-162-3/+3
| | | | | | translating these manual pages. Minor corrections by me. Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp>
* Fix typos and spelling mistakes.joel2010-08-062-3/+3
|
* Connect the snmp_wlan(3) module to the build.syrinx2010-07-261-1/+2
| | | | Sponsored by: The FreeBSD Foundation
* Bring in a SNMP module to support monitoring cloned wireless interfacessyrinx2010-07-267-0/+12694
| | | | | | | | via bsnmpd(1). The module implements a private BEGEMOT-WIRELESS-MIB. Sponsored by: The FreeBSD Foundation Reviewed by: philip@ Approved by: philip@
* Make failed open of /dev/mdctl in the bsnmpd hostres module non-fatal.simon2010-07-241-2/+5
| | | | | | | This makes it possible to use the hostres module when bsnmpd is not running as root. MFC after: 1 week
* mdoc: consistently spell our email addresses <foo@FreeBSD.org>uqs2010-05-192-3/+3
| | | | Reviewed by: ru
* Now actually implement reading/refreshing/returning data from the ↵syrinx2010-03-244-40/+334
| | | | | | | | | | | | pfTablesAddrTable and modify the BEGEMOT-PF-MIB to add support for IPV6 address' statistics in the PF tables via pfTablesAddrNetType and pfTablesAddrNet. While here, upgrade the pf_tree.def file to the new format that includes enumerated values. Also make sure to return SNMP_ERR_NOSUCHNAME for ALTQ objects, if ALTQ is disabled, so that the agent will know to skip the pfAltq subtree when servicing GETNEXT requests from SNMP clients (otherwise snmpwalk on begemotPf would stop at the pfAltq subtree with bsnmpd returning SNMP_ERR_GENERR).
* Make sure the snmp_pf module will first refresh its entires if necessary,syrinx2010-03-191-12/+12
| | | | | | | | | | | then find a specific entry, and get the requested value. So far, it found the specific entry, refreshed the entry list if necessary, and got the requested value from the found entry. The problem is that refreshing nukes all old entries and replaces them with new ones and the obtained entry pointer was no longer valid after the refresh. Reviewed by: bz, philip MFC after: 1 week
* Add support for retrieving labeled pf filter rule counters.syrinx2010-03-183-4/+382
| | | | | PR: bin/132847 Submitted by: Szalai Andras <szalai (dot) bandi (at) gmail.com>
* Remove redundant WARNS?=6 overrides and inherit the WARNS setting fromuqs2010-03-021-1/+2
| | | | | | | | the toplevel directory. This does not change any WARNS level and survives a make universe. Approved by: ed (co-mentor)
* Port all applications in usr.sbin/ from libulog to utmpx.ed2010-01-132-4/+3
|
* The last big commit: let usr.sbin/ use WARNS=6 by default.ed2010-01-023-2/+2
|
* Let the snmp_hostres module use utmpx.ed2009-12-243-30/+9
| | | | Approved by: harti
* Make sure enough memory is allocated for a struct pft_entry whensyrinx2009-12-051-1/+1
| | | | | | | refreshing the list of pf tables. OKed by: philip MFC after: 1 week
* Collapse devinfo_state_t with device_state_t in order to avoid aattilio2009-11-151-4/+4
| | | | | | | structure replication and improve manteneability. Reviewed by: jhb, imp Tested by: Riccardo Torrini <riccardo at torrini dot org>
* Bump the version of all non-symbol-versioned shared libraries inkensmith2009-07-191-1/+1
| | | | | | | | preparation for 8.0-RELEASE. Add the previous version of those libraries to ObsoleteFiles.inc and bump __FreeBSD_Version. Reviewed by: kib Approved by: re (rwatson)
* add zfs oid to bsnmpdkmacy2009-05-171-0/+1
| | | | | PR: bin/129360 Submitted by: Ulrich Spoerlein
* Only build the bsnmpd netgraph module if MK_NETGRAPH_SUPPORT is set.bms2008-10-021-1/+4
|
* Use INSERT_OBJECT_INT_LINK_INDEX macro instead of TAILQ_INSERT_TAIL whenphilip2008-06-011-1/+1
| | | | | | | | | | | filling the table of ALTQ queues retrieved from the kernel. It is possible for the kernel to return the queues not by pa.altq.qid order. When this happens, pf_snmp would only partially fill its table. PR: bin/120974 Submitted by: Mykola Dzham <i -at- levsha.org.ua> MFC after: 3 days
* Keep the snmp_bridge(3) module up to date with if_bridge(4) and add ansyrinx2007-08-086-11/+108
| | | | | | | | object to control the value of the new 'PRIVATE' bridge members' flag. While here, remove stale '__unused' compiler directives. Reviewed by: bz Approved by: re (bmah), bz (mentor)
* 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>
OpenPOWER on IntegriCloud