summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsnmpd
Commit message (Collapse)AuthorAgeFilesLines
* META MODE: Update dependencies with 'the-lot' and add missing directories.bdrewery2015-12-011-0/+2
| | | | | | | | | | | | | | This is not properly respecting WITHOUT or ARCH dependencies in target/. Doing so requires a massive effort to rework targets/ to do so. A better approach will be to either include the SUBDIR Makefiles directly and map to DIRDEPS or just dynamically lookup the SUBDIR. These lose the benefit of having a userland/lib, userland/libexec, etc, though and results in a massive package. The current implementation of targets/ is very unmaintainable. Currently rescue/rescue and sys/modules are still not connected. Sponsored by: EMC / Isilon Storage Division
* META MODE: Prefer INSTALL=tools/install.sh to lessen the need for xinstall.host.bdrewery2015-11-2512-12/+0
| | | | | | | | This both avoids some dependencies on xinstall.host and allows bootstrapping on older releases to work due to lack of at least 'install -l' support. Sponsored by: EMC / Isilon Storage Division
* META_MODE: Remove DEP_RELDIR from Makefile.depend files.bdrewery2015-09-251-2/+0
| | | | | | This has not been needed since r284171 in projects/bmake. Sponsored by: EMC / Isilon Storage Division
* snmp_hostres(3): Fix buffer overflow.pfg2015-07-201-1/+1
| | | | | | | Actually just a typo. Detected by gcc + FORTIFY_SOURCE patches. CID: 1007594 MFC after: 3 days
* new dependssjg2015-06-1611-11/+0
|
* Add META_MODE support.sjg2015-06-1317-0/+605
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-0816-32/+0
| |
| * Merge sync of headsjg2015-05-278-22/+11
| |\ | |/ |/|
| * Merge head from 7/28sjg2014-08-1924-12/+779
| |\
| * | Updated dependenciessjg2014-05-1614-1/+24
| | |
| * | Updated dependenciessjg2014-05-101-0/+2
| | |
| * | Merge from headsjg2014-05-084-4/+4
| |\ \
| * \ \ Merge headsjg2014-04-285-30/+127
| |\ \ \
| * | | | Updated dependenciessjg2013-10-131-0/+1
| | | | |
| * | | | New dependenciessjg2013-10-131-0/+36
| | | | |
| * | | | Merge from headsjg2013-09-057-0/+1007
| |\ \ \ \
| * \ \ \ \ sync from headsjg2013-04-122-23/+17
| |\ \ \ \ \
| * | | | | | Updated dependenciessjg2013-03-1114-0/+14
| | | | | | |
| * | | | | | Updated dependenciessjg2013-02-1615-30/+0
| | | | | | |
| * | | | | | Sync with HEAD.obrien2013-02-084-0/+0
| |\ \ \ \ \ \
| * | | | | | | Updated/new Makefile.dependsjg2012-11-0811-0/+37
| | | | | | | |
| | | | | | | |
| | \ \ \ \ \ \
| *-. \ \ \ \ \ \ Sync from headsjg2012-11-047-8/+13
| |\ \ \ \ \ \ \ \
| * | | | | | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-2215-0/+496
| | |/ / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | | | | | | bsnmptools does not depends on libcryptobapt2015-04-091-4/+0
| | | | | | | | |
* | | | | | | | | 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
OpenPOWER on IntegriCloud