summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsnmpd/modules
Commit message (Collapse)AuthorAgeFilesLines
* Import patch to fix hostres high CPU usageRenato Botelho2017-10-161-1/+2
| | | | Imported from: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209368
* MFC r314987-r314989, r314993-r314994, r315046-r315049, r315102araujo2017-04-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r314987: Use nitems() from sys/param.h. Reviewed by: asomers MFC after: 3 weeks. Differential Revision: https://reviews.freebsd.org/D9944 r314988: Use nitems() from sys/param.h. Reviewed by: ume MFC after: 3 weeks. Differential Revision: https://reviews.freebsd.org/D9938 r314989: Use nitems() from sys/param.h and also remove the cast. Reviewed by: markj MFC after: 3 weeks. Differential Revision: https://reviews.freebsd.org/D9937 r314993: Use nitems() from sys/param.h. Reviewed by: ngie MFC after: 3 weeks. Differential Revision: https://reviews.freebsd.org/D9936 r314994: Use nitems() from sys/param.h. Reviewed by: ngie MFC after: 3 weeks. Differential Revision: https://reviews.freebsd.org/D9940 r315046: Use nitems() from sys/param.h Reviewed by: jhb MFC after: 3 weeks. Differential Revision: https://reviews.freebsd.org/D9941 r315047: Use nitems() from sys/param.h. Reviewed by: np MFC after: 3 weeks. Differential Revision: https://reviews.freebsd.org/D9945 r315048: Use nitems() from sys/param.h. MFC after: 3 weeks. r315049: Bring back the cast removed in my previous commit to allow us build vmstat with WARNS 2. This cast was first introduced at r87690. Reported by: bde, pfg and ngie MFC after: 3 weeks. r315102: Use nitems() from sys/param.h. Reviewed by: ngie Differential Revision: https://reviews.freebsd.org/D9943
* MFC r311744,r312328,r312329,r312330:ngie2017-02-043-11/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r311744: Document bsd.snmpmod.mk from a high-level r312328: Add a make target (smilint) for running smilint tool against BMIBS Running smilint against MIB definitions is useful in finding functional problems with MIB definitions/descriptions. This is inspired by the smilint targets defined in usr.sbin/bsnmpd/modules/{snmp_hostres,snmp_mibII}/Makefile Document all of the variables that are involved in running the smilint target, as well as all of the prerequisites to running it. r312329: Remove ad hoc smilint targets made standard in bsd.snmpmod.mk in r312328 r312330: Add smilint target to subdir targets so "make smilint" here will run the smilint target in subdirs While here, convert a path that's .CURDIR relative to SRCTOP
* MFC r311740:ngie2017-01-162-4/+6
| | | | | | | | Improve the smilint target in the hostres and mibII modules - Mark the smilint target .PHONY so it's always executed when requested - Leverage .PATH for BMIBS instead of spelling the path out longhand for them
* MFC r311758:ngie2017-01-161-1/+3
| | | | | | | Add a REVISION section to track changes for the BEGEMOT-ATM-FREEBSD-MIB MIB file There haven't been any changes to the MIB definition, so the REVISION remains static at the version it was imported at
* MFC r311741,r311761:ngie2017-01-162-0/+16
| | | | | | | | | | | | | | | | | r311741: Add a REVISION section to track changes for the hostres module There haven't been any changes to the MIB definition, so the REVISION remains static at the version it was imported at r311761: Add a REVISION section to track changes for the BEGEMOT-NETGRAPH MIB file This change also documents the modification harti made to a handful of objects in r122758 (the max OCTET STRING width was increased from 15 to 31 octets)
* MFC r311739:ngie2017-01-137-8/+8
| | | | | | Use SRCTOP instead of spelling out the full path with .CURDIR This helps condense the output for CFLAGS and .PATH
* MFC r311290,r311293,r311294:ngie2017-01-131-13/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | r311290: Use strlcpy instead of strcpy when copying the bridge name to ifr.ifr_name to avoid buffer overflows CID: 1006735, 1006737, 1006738 r311293: bridge_do_pfctl: allocate mib_name dynamically using asprintf This is being done to reduce wasted space, simplify complexity in the code, and to quell a Coverity warning about buffer overruns. warning about buffer overruns. CID: 1006736 r311294: style cleanup - bridge_pf_dump: use nitems instead of spelling it out longhand - bridge_do_pfctl: sort variables by alignment for type
* MFC r311393:ngie2017-01-091-2/+2
| | | | | OS_getSystemUptime: use nitems for calculating the number of elements in a sysctl mib instead of hardcoding the number 2
* MFC r311291:ngie2017-01-071-2/+2
| | | | bridge_get_pfval: use nitems instead of spelling it out longhand
* MFC r310665:ngie2017-01-041-1/+4
| | | | Only build/install usr.sbin/bsnmpd/modules/snmp_hast if MK_HAST != no
* MFC r310664:ngie2017-01-041-1/+4
| | | | Only build/install usr.sbin/bsnmpd/modules/snmp_wlan if MK_WIRELESS != no
* MFC r310667:ngie2016-12-311-1/+1
| | | | style(9) fixes: clean up leading whitespace
* MFC r310669:ngie2016-12-311-8/+8
| | | | style(9): clean up whitespace
* MFC r310648:ngie2016-12-3119-54/+54
| | | | style(9): clean up trailing whitespace
* MFC r310666,r310675:ngie2016-12-317-20/+23
| | | | | | | | | | | | | | | | r310666: style(9) fixes - Clean up trailing whitespace - Fix variable type alignment in storage_OS_get_swap(..) r310675: Fix the build by moving the initializers for len/nswapdev down below the declarations Pointyhat to: ngie
* MFC r310196:ngie2016-12-261-3/+6
| | | | | | | Fix some minor typos with begemotBridgeTpLearnedEntryDiscards and begemotBridgeTpMaxAddresses Bump LAST-UPDATED for the MIB, per the change
* MFC r305855, r306297, r306300, r306312-r306313marcel2016-12-111-1/+1
| | | | | | | | | | | | | | When MAKEOBJDIRPREFIX points to a case-insensitive file system, the build can break when different source files create the same object files (case-insensitivity speaking). This is the case for object files compiled with -fpic and shared libraries. The former uses an extension of ".So", and the latter an extension ".so". Rename shared object files from *.So to *.pico to match what NetBSD does. Also: o Compile _Exit.c as C99_Exit.c, as it conflicts with _exit.s o Add entry to UPDATING o Document .pico extension
* Remove NO_WERROR.clang from this Makefilengie2016-05-151-2/+0
| | | | | | | This compiles with clang without warnings MFC after: 1 month Sponsored by: EMC / Isilon Storage Division
* MFHgjb2016-03-0212-210/+0
|\ | | | | | | Sponsored by: The FreeBSD Foundation
| * DIRDEPS_BUILD: Regenerate without local dependencies.bdrewery2016-02-2412-210/+0
| | | | | | | | | | | | | | | | These are no longer needed after the recent 'beforebuild: depend' changes and hooking DIRDEPS_BUILD into a subset of FAST_DEPEND which supports skipping 'make depend'. Sponsored by: EMC / Isilon Storage Division
* | MFHgjb2016-02-101-1/+1
|\ \ | |/ | | | | Sponsored by: The FreeBSD Foundation
| * Rename P_KTHREAD struct proc p_flag to P_KPROC.kib2016-02-091-1/+1
| | | | | | | | | | | | | | | | I left as is an apparent bug in ntoskrnl_var.h:AT_PASSIVE_LEVEL() definition. Suggested by: jhb Sponsored by: The FreeBSD Foundation
* | MFH r289384-r293170gjb2016-01-0412-11/+2
|\ \ | |/ | | | | Sponsored by: The FreeBSD Foundation
| * 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-2511-11/+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
* | Merge from headbapt2015-10-011-2/+0
|\ \ | |/
| * 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
* | Merge from headbapt2015-09-121-1/+1
|\ \ | |/
| * 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
* | Merge from head @274131bapt2015-06-2011-11/+0
|\ \ | |/
| * new dependssjg2015-06-1611-11/+0
| |
* | Merge from headbapt2015-06-1513-0/+494
|\ \ | |/
| * Add META_MODE support.sjg2015-06-1313-0/+494
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-0812-24/+0
| | |
| | * Merge sync of headsjg2015-05-276-12/+9
| | |\ | | |/ | |/|
| | * Merge head from 7/28sjg2014-08-1923-11/+778
| | |\
| | * | Updated dependenciessjg2014-05-1610-0/+20
| | | |
| | * | Merge from headsjg2014-05-082-2/+2
| | |\ \
| | * \ \ Merge headsjg2014-04-284-2/+92
| | |\ \ \
| | * | | | New dependenciessjg2013-10-131-0/+36
| | | | | |
| | * | | | Merge from headsjg2013-09-057-0/+1007
| | |\ \ \ \
| | * \ \ \ \ sync from headsjg2013-04-121-19/+13
| | |\ \ \ \ \
| | * | | | | | Updated dependenciessjg2013-03-1110-0/+10
| | | | | | | |
| | * | | | | | Updated dependenciessjg2013-02-1611-22/+0
| | | | | | | |
| | * | | | | | Sync with HEAD.obrien2013-02-083-0/+0
| | |\ \ \ \ \ \
| | * | | | | | | Updated/new Makefile.dependsjg2012-11-0810-0/+34
| | | | | | | | |
| | | | | | | | |
| | | \ \ \ \ \ \
| | *-. \ \ \ \ \ \ Sync from headsjg2012-11-047-8/+13
| | |\ \ \ \ \ \ \ \
| | * | | | | | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-2211-0/+386
| | | |/ / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | | | | | | | Add a bsnmp packagebapt2015-03-181-0/+1
|/ / / / / / / / /
OpenPOWER on IntegriCloud