summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsnmpd
Commit message (Collapse)AuthorAgeFilesLines
* MFC r274900:dim2014-11-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | Fix the following -Werror warnings from clang 3.5.0, while building bsnmpd's snmp_hostres module: usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c:204:20: error: absolute value function 'abs' given an argument of type 'const long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value] str[9] = (u_char)(abs(tm->tm_gmtoff) / 3600); ^ usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c:204:20: note: use function 'labs' instead str[9] = (u_char)(abs(tm->tm_gmtoff) / 3600); ^~~ labs usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c:205:22: error: absolute value function 'abs' given an argument of type 'const long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value] str[10] = (u_char)((abs(tm->tm_gmtoff) % 3600) / 60); ^ usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c:205:22: note: use function 'labs' instead str[10] = (u_char)((abs(tm->tm_gmtoff) % 3600) / 60); ^~~ labs Since tm::tm_gmtoff is a long, use labs(3) instead.
* MFC: r266931brueffer2014-06-071-5/+6
| | | | Grammar cleanup; sort SEE ALSO.
* Bulk sync of pf changes from head, in attempt to fixup broken build Iglebius2014-03-121-1/+4
| | | | | | | | | made in r263029. Merge r257186,257215,257349,259736,261797. These changesets split pfvar.h into several smaller headers and make userland utilities to include only some of them.
* MFC: r262494brueffer2014-03-051-28/+35
| | | | | | | | Rough cleanup (new sentence -> new line, grammar, spelling, mdoc). This could use more work. PR: 187035 (in part) Submitted by: Bjorn Heidotting
* MFC r260049:trociny2014-01-073-1/+88
| | | | Add mibs for hastd(1) queue stats.
* hastResourceWorkerPid is read-only.trociny2013-07-031-1/+1
| | | | | Submitted by: jilles MFC after: 3 days
* Add a mib for worker process ID.trociny2013-07-023-1/+19
| | | | MFC after: 3 days
* Revert r250394, which disabled snmp_hast due to libl dependency issue --trociny2013-05-121-0/+1
| | | | the dependency has been removed in r250503.
* Get rid of libl dependency. We needed it only to provide yywrap. Buttrociny2013-05-111-2/+2
| | | | | | | yywrap is not necessary when parsing a single hast.conf file. Suggested by: kib Reviewed by: pjd
* Move snmp_hast manual to section 3, where all other manual pages fortrociny2013-05-092-3/+3
| | | | | | | | | | | | | | | bsnmp modules are located. Section 3 (Library Functions) looks wrong for this manual page, which contains only module description, that is why initially it was located to section 8 (System Manager's Manual). On the other hand manual pages for all other bsnmpd modules are already located in the section 3, and having all pages in one section looks more consistent. Also, currently, similarly to manuals for other modules, snmp_hast manual contains LIBRARY section, which is not good style for section 8. Requested by: joel X-MFC with: r250379
* Unbreak build - this can only build on i386 as-is due to use of libl inpeter2013-05-081-1/+0
| | | | a .so file, and we currently (intentionally) only build libl.a.
* HAST module for bsnmpd(1).trociny2013-05-086-0/+987
| | | | | Reviewed by: harti, pjd MFC after: 2 weeks
* Add the Clang specific -Wmissing-variable-declarations to WARNS=6.ed2013-04-191-0/+2
| | | | | | | | | | | | | This compiler flag enforces that that people either mark variables static or use an external declarations for the variable, similar to how -Wmissing-prototypes works for functions. Due to the fact that Yacc/Lex generate code that cannot trivially be changed to not warn because of this (lots of yy* variables), add a NO_WMISSING_VARIABLE_DECLARATIONS that can be used to turn off this specific compiler warning. Announced on: toolchain@
* Minor spelling and grammar fixes.joel2013-04-111-4/+4
|
* hrStorageSize and hrStorageUsed are 32 bit integers, reporting a fstrociny2013-03-251-19/+13
| | | | | | | | | | | | | size and usage in hrStorageAllocationUnits. If the file system has more than 2^31 allocations it can not be shown correctly and the meters are useless. In such cases follow net-snmp behaviour and increase hrStorageAllocationUnits so the values fit under INT_MAX. PR: bin/177183 Submitted by: Eugene Grosbein egrosbein rdtc.ru MFC after: 2 weeks
* Clean some 'svn:executable' properties in the tree.pfg2013-01-264-0/+0
| | | | | Submitted by: Christoph Mallon MFC after: 3 days
* In snmp_hostres, device_map table is used for consistent device tabletrociny2012-09-171-0/+6
| | | | | | | | | | | | | | | | | | | | | indexing. When a device has gone it is not removed from device_map table but just its entry_p field is set to NULL. So when traversing device_map in disk_OS_get_ATA_disks() and disk_OS_get_MD_disks() check for entry_p being NULL, otherwise the bsnmpd crash is possible when a removed map entry is dereferenced. Before the fix, for disk_OS_get_ATA_disks() the crash could be easily reproduced running: atacontrol detach ata1 The crash was not observed in disk_OS_get_MD_disks() because currently snmp_hostres does no see md(4) disks: to get the device list it uses devinfo(3), which does not return md devices. Reported by: Miroslav Lachman 000.fbsd quip.cz MFC after: 1 week
* Do not count kernel threads as processes for hrSystemProcesses OID.glebius2012-09-111-1/+1
| | | | | PR: bin/160494 Submitted by: Jeremy Chadwick <freebsd jdc.parodius.com>
* Spelling.glebius2012-09-111-1/+1
|
* Merge the projects/pf/head branch, that was worked on for last six months,glebius2012-09-083-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into head. The most significant achievements in the new code: o Fine grained locking, thus much better performance. o Fixes to many problems in pf, that were specific to FreeBSD port. New code doesn't have that many ifdefs and much less OpenBSDisms, thus is more attractive to our developers. Those interested in details, can browse through SVN log of the projects/pf/head branch. And for reference, here is exact list of revisions merged: r232043, r232044, r232062, r232148, r232149, r232150, r232298, r232330, r232332, r232340, r232386, r232390, r232391, r232605, r232655, r232656, r232661, r232662, r232663, r232664, r232673, r232691, r233309, r233782, r233829, r233830, r233834, r233835, r233836, r233865, r233866, r233868, r233873, r234056, r234096, r234100, r234108, r234175, r234187, r234223, r234271, r234272, r234282, r234307, r234309, r234382, r234384, r234456, r234486, r234606, r234640, r234641, r234642, r234644, r234651, r235505, r235506, r235535, r235605, r235606, r235826, r235991, r235993, r236168, r236173, r236179, r236180, r236181, r236186, r236223, r236227, r236230, r236252, r236254, r236298, r236299, r236300, r236301, r236397, r236398, r236399, r236499, r236512, r236513, r236525, r236526, r236545, r236548, r236553, r236554, r236556, r236557, r236561, r236570, r236630, r236672, r236673, r236679, r236706, r236710, r236718, r237154, r237155, r237169, r237314, r237363, r237364, r237368, r237369, r237376, r237440, r237442, r237751, r237783, r237784, r237785, r237788, r237791, r238421, r238522, r238523, r238524, r238525, r239173, r239186, r239644, r239652, r239661, r239773, r240125, r240130, r240131, r240136, r240186, r240196, r240212. I'd like to thank people who participated in early testing: Tested by: Florian Smeets <flo freebsd.org> Tested by: Chekaluk Vitaly <artemrts ukr.net> Tested by: Ben Wilber <ben desync.com> Tested by: Ian FREISLICH <ianf cloudseed.co.za>
* Upgrade our copy of llvm/clang to trunk r162107. With thanks todim2012-08-201-0/+2
| | | | Benjamin Kramer and Joerg Sonnenberger for their input and fixes.
* General mdoc(7) and typo fixes.gjb2012-05-112-4/+5
| | | | | | PR: 167734 Submitted by: Nobuyuki Koganemaru (kogane!jp.freebsd.org) MFC after: 3 days
* Remove trailing whitespace per mdoc lint warningeadler2012-03-292-6/+6
| | | | | | | Disussed with: gavin No objection from: doc Approved by: joel MFC after: 3 days
* mdoc: terminate quoted strings.joel2012-03-262-2/+2
| | | | Reviewed by: brueffer
* Remove superfluous paragraph macro.joel2012-03-252-2/+0
|
* Globally replace u_int*_t from (non-contributed) man pages.ed2012-02-121-1/+1
| | | | | | | | | | | The reasoning behind this, is that if we are consistent in our documentation about the uint*_t stuff, people will be less tempted to write new code that uses the non-standard types. I am not going to bump the man page dates, as these changes can be considered style nits. The meaning of the man pages is unaffected. MFC after: 1 month
* Implement an option to execute SNMP walks using GETBULK requests in bsnmpwalk(1)syrinx2012-01-104-26/+62
| | | | | | | retrieving multiple values with a Single PDU. Reviewed by: philip@ Tested by: tsanand129 (at) gmail (dot) com
* Partial backout of r228990, restore original MIB object name.uqs2012-01-052-4/+4
| | | | | | | It's too late to change this in 9.0 -- so we have a release with the misspelling in the wild and should not break users that depend on it. Deprecating/replacing it because of a one-char typo seems excessive.
* Fix subtle typo: compare against idx -- not index.ed2012-01-031-1/+1
| | | | | | | In this contest, index refers to the index(3) function. In this case it doesn't really harm, as this function is never called with idx == NULL. MFC after: 2 weeks
* Spelling fixes for usr.sbin/uqs2011-12-3014-56/+56
|
* In usr.sbin/bsnmpd/modules/snmp_wlan/wlan_snmp.h, use the correctdim2011-12-171-2/+2
| | | | | | | enumeration types for the mesh_peering and mesh_forwarding members of struct wlan_iface, to fix enum conversion warnings. MFC after: 1 week
* Apparently, "ada" drives are better treated similarly to "da" drives.ivoras2011-10-241-1/+2
|
* It seems that the warning is much less severe than its message says. Theivoras2011-10-241-1/+1
| | | | device is certainly added to the list after the first pass.
* Fix typoivoras2011-10-242-2/+2
| | | | MFC after: 1 month
* Fix broken mdoc.uqs2011-08-011-22/+39
| | | | | Found by: manlint Approved by: re (kib)
* Use full buffer size in read(2) call, there is no need to preserve theae2011-07-111-11/+5
| | | | | | | | | | | | | | | | last byte of the buffer. Since we call refresh_device_tbl() for any devctl event types - no need to check the first byte of buffer. Remove these checks. Also remove logging for the case of unknown devd message. It incorrectly triggers when all devctl events are not fit into one buffer and part of unread data will be read in the next pass. When length of data readed from devctl is equal to sizeof(buf), then try to read from socket again, to read full data. MFC after: 2 weeks
* Remove redundant assignments to WARNS.ed2011-06-061-2/+0
| | | | For these directories, WARNS is already implied to be 6.
* [mdoc] Fixed .Dt call.ru2011-05-253-3/+3
|
* Unbreak the build by temprorarily not using include directives insyrinx2010-12-202-2/+20
| | | | | bsnmpd(1)' def files, until bsd.snmpmod.mk & Makefiles are fixed to pass proper include path flags to gensnmptree.
* Bring in a SNMP module that allows configuration of SNMPv3 Notification targets.syrinx2010-12-205-18/+24
| | | | | | Sponsored by: The FreeBSD Foundation Reviewed by: philip Approved by: philip
* Pass proper -Wl,-export-dynamic to ld. Thus bsnmpd(1) compiled with clangsyrinx2010-12-161-1/+1
| | | | | | properly exports its symbols to the modules. Submitted by: dim
* Remove unnecessary debug/error CFLAGS.syrinx2010-12-111-1/+0
| | | | Reported by : pawel.worach (at) gmail (dot) com
* Unbreak "make installworld" w/ DESTDIR specifiedsyrinx2010-12-091-2/+2
| | | | PR : kern/152939
* Add bsnmpd(1)'s SNMP client tools (including SNMPv3 support) to the base system.syrinx2010-12-0813-1/+7563
| | | | | | Sponsored by: The FreeBSD Foundation (the SNMPv3 bits), Google Summer of Code 2005 Reviewed by: philip@ (mostly), bz@ (earlier version based on p4 ch124545) Approved by: philip@
* In bsnmpd(1) add support for SNMPv3 message processing model, including ↵syrinx2010-12-085-1/+52
| | | | | | | | message authentication, packet encryption & view-based access control (RFC 3412, 3414, 3415). Sponsored by: The FreeBSD Foundation Reviewed by: philip@ (mostly) Approved by: philip@
* Fix CPU load reporting independent of scheduler used.uqs2010-10-281-204/+128
| | | | | | | | | | | | | | | | | | | | | | - Sample CPU usage data from kern.cp_times, this makes for a far more accurate and scheduler independent algorithm. - Rip out the process list scraping that is no longer required. - Don't update CPU usage sampling on every request, but every 15s instead. This makes it impossible for an attacker to hide the CPU load by triggering 4 samplings in short succession when the system is idle. - After reaching the steady-state, the system will always report the average CPU load of the last 60 sampled seconds. - Untangling of call graph. PR: kern/130222 Tested by: Julian Dunn <jdunn@aquezada.com> Gustau Pérez <gperez@entel.upc.edu> Jürgen Weiß <weiss@uni-mainz.de> MFC after: 2 weeks I'm unsure if some MIB standard states this must be the load average for, eg. 300s, it looks like net-snmp isn't even bothering to implement the CPU load reporting at all.
* 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@
OpenPOWER on IntegriCloud