summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsnmpd
Commit message (Collapse)AuthorAgeFilesLines
* mdoc: sort SEE ALSO.joel2014-12-262-4/+4
|
* Convert usr.sbin to LIBADDbapt2014-11-255-13/+6
| | | | Reduce overlinking
* Fix the following -Werror warnings from clang 3.5.0, while buildingdim2014-11-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | 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 after: 3 days
* Remove ia64.marcel2014-07-071-1/+1
| | | | | | | | | | | | | | | | | This includes: o All directories named *ia64* o All files named *ia64* o All ia64-specific code guarded by __ia64__ o All ia64-specific makefile logic o Mention of ia64 in comments and documentation This excludes: o Everything under contrib/ o Everything under crypto/ o sys/xen/interface o sys/sys/elf_common.h Discussed at: BSDcan
* Simplify the code a little bit using the update_sensor_sysctl() routine toloos2014-06-271-9/+5
| | | | | | | | | retrieve the sensor temperature. This also avoid the overflow that could happen on sysctlnametomib(3) because the code was not checking the length of the mib array. CID: 1222504
* Correct the buffer length check to avoid overflows.loos2014-06-271-3/+6
| | | | | Found with: Coverity Scan CID: 1222502, 1222503
* use .Mt to mark up email addresses consistently (part2)bapt2014-06-207-7/+7
| | | | | PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de>
* Never, ever, abbreviate the month names on manual pages.loos2014-06-021-1/+1
| | | | | Pointed out by: brueffer Pointy hat to: loos
* Adds the bsnmp module to export the temperature data from lm75 sensors onloos2014-06-016-0/+726
| | | | | | | | | the system. Together with lm75(4) this module allows easy temperature monitoring over SNMP, specially for embedded systems. Manual page reviewed by: brueffer (D128)
* Grammar cleanup; sort SEE ALSO.brueffer2014-05-311-5/+6
| | | | MFC after: 1 week
* Use src.opts.mk in preference to bsd.own.mk except where we need stuffimp2014-05-064-4/+4
| | | | from the latter.
* Rough cleanup (new sentence -> new line, grammar, spelling, mdoc).brueffer2014-02-251-28/+35
| | | | | | | | This could use more work. PR: 187035 (in part) Submitted by: Bjorn Heidotting MFC after: 1 week
* Fix world build WITHOUT_PF.glebius2014-02-121-1/+4
| | | | Sponsored by: Nginx, Inc.
* Add mibs for hastd(1) queue stats.trociny2013-12-293-1/+88
| | | | MFC after: 1 week
* 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
OpenPOWER on IntegriCloud