364152 |
12-Aug-2020 |
eugen |
MFC r363889: bsnmptools: make it print protocol errors to stderr instead of stdout
Reviewed by: syrinx, bz Differential Revision: https://reviews.freebsd.org/D25911 |
357523 |
04-Feb-2020 |
dim |
MFC r357340:
Merge r357339 from the clang1000-import branch:
Fix the following -Werror warning from clang 10.0.0 in bsnmpd:
usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c:1661:4: error: misleading indentation; statement is not part of the previous 'else' [-Werror,-Wmisleading-indentation] return (-1); ^ usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c:1658:5: note: previous statement is here } else ^
The intent was to group the return statement with the previous syslog() call. |
357520 |
04-Feb-2020 |
dim |
MFC r357272:
Merge r357271 from the clang1000-import branch:
Fix the following -Werror warning from clang 10.0.0 in bsnmpd:
usr.sbin/bsnmpd/modules/snmp_bridge/bridge_port.c:1235:43: error: overlapping comparisons always evaluate to true [-Werror,-Wtautological-overlap-compare] begemotBridgeStpPortEnable_enabled || ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
Work around it by casting the enum values to the type of val->v.integer. |
344747 |
04-Mar-2019 |
avos |
MFC r344245: snmp_hostres(3): fix a typo in sanity checks in handle_chunk()
PR: 204253 Submitted by: David Binderman <dcb314@hotmail.com> |
330449 |
05-Mar-2018 |
eadler |
MFC r326276:
various: general adoption of SPDX licensing ID tags.
Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task.
The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts.
No functional change intended. |
325395 |
04-Nov-2017 |
pfg |
MFC r325067: bsnmpd: Only refresh devtree if devd event is a new or removed device.
It makes sense to refresh the tree only when a device is inserted or removed, otherwise bsnmpd needlessly wastes lots of CPU.
PR: 209368 |
319119 |
29-May-2017 |
ngie |
MFC r314659,r314676:
r314659:
usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible
This simplifies make logic/output
r314676:
Fix build after r314656
Some of the changes I introduced to use .ALLSRC were correct in spirit, but incorrect in reality -- in particular, ../Makefile.inc hadn't been pulled in via bsd.init.mk (via bsd.lib.mk, bsd.prog.mk), so the value of .ALLSRC (evaluated immediately) was empty. .include bsd.init.mk explicitly so we can be certain that the values used as dependencies in the targets are defined when the target recipe has been evaluated.
Reminder: thou shalt separate out separate functional changes before committing them.
(YUGE) Pointyhat to: ngie In collaboration with: bdrewery |
318108 |
09-May-2017 |
bdrewery |
DIRDEPS_BUILD: Update dependencies.
This is a direct commit since MFCing these changes is impractical.
Sponsored by: Dell EMC Isilon |
317062 |
17-Apr-2017 |
araujo |
MFC r314987-r314989, r314993-r314994, r315046-r315049, r315102
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 |
313242 |
04-Feb-2017 |
ngie |
MFC r311174:
Make /usr/lib/libbsnmptools.so.0 into an INTERRNALLIB
Although it increases the size of the bsnmp{get,set,walk} binaries by four on my [amd64] system, it removes the need for producing .debug files, profiled libraries, and for installing the library itself, reducing the overall size use on disk by the utilities noted previously.
Plus, it guards against ABI/API compatibility issues with the library as it's only used internal to the tools themselves. |
313239 |
04-Feb-2017 |
ngie |
MFC r311744,r312328,r312329,r312330:
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 |
312262 |
16-Jan-2017 |
ngie |
MFC r311740:
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 |
312258 |
16-Jan-2017 |
ngie |
MFC r311758:
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 |
312256 |
16-Jan-2017 |
ngie |
MFC r311741,r311761:
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) |
312056 |
13-Jan-2017 |
ngie |
MFC r311739:
Use SRCTOP instead of spelling out the full path with .CURDIR
This helps condense the output for CFLAGS and .PATH |
312049 |
13-Jan-2017 |
ngie |
MFC r310892,r310894,r310989:
r310892:
Don't call snmp_pdu_free(..) until finished with the pdu and when ready to allocate a new one via snmp_pdu_create(..)
This fixes bsnmpwalk, so it no longer crashes after r310729
r310894:
snmp_pdu_free the right object at the right time in snmptool_walk
r310892 was on the right track, but unfortunately it was resolving the problem incorrectly and accidentally leaking memory in the process.
- Call snmp_pdu_free on req before calling snmp_pdu_create on it at the bottom of the outer while loop - Call snmp_pdu_free on resp after calling snmpwalk_nextpdu_create in the inner loop
r310989:
Call snmp_pdu_free on req/resp with a consistent, correct pattern
- snmp_pdu_free should be called before snmp_pdu_create is called again - snmp_pdu_free should be called on the resp to snmp_dialog when successful
Tested with the following bsnmp commands:
% export SNMPUSER=bsnmp SNMPPASSWD=bsnmptest % SNMP_ARGS="-A proto=sha -C context='' -K -P proto=des -v 3 -r 0" % bsnmpset $SNMP_ARGS sysLocation="MyAgent" % bsnmpget $SNMP_ARGS sysLocation % bsnmpwalk $SNMP_ARGS |
312043 |
13-Jan-2017 |
ngie |
MFC r311290,r311293,r311294:
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 |
311719 |
09-Jan-2017 |
ngie |
MFC r311393:
OS_getSystemUptime: use nitems for calculating the number of elements in a sysctl mib instead of hardcoding the number 2 |
311600 |
07-Jan-2017 |
ngie |
MFC r311291:
bridge_get_pfval: use nitems instead of spelling it out longhand |
311594 |
07-Jan-2017 |
ngie |
MFC r310497:
Warning message cleanup
- Use warn instead of warnx + strerror(errno) - Remove unnecessary trailing newline from a warnx call - Add missing spaces following "," in syslog and warn* calls |
311591 |
07-Jan-2017 |
ngie |
MFC r310954,r310987,r311222:
r310954:
Set value->v.octetstring.len to a correct value on malloc success/failure
The previous code always set value->v.octetstring.len to len, regardless of the result from the malloc call. This misleads the caller on malloc failure. Set .len to len on success and 0 on failure.
CID: 1007590
r310987:
snmp_output_err_resp, snmp_output_resp: allocate `object` using calloc, not on the stack
Some of the callers try to determine whether or not `object` is valid by testing the value for NULL, which will never be true if it's a stack value, so in order to be clear and correct down the call stack, use a heap allocated object.
This also addresses a Coverity issue by initializing all of `object` via calloc
CID: 1006392
r311222:
Fix logical inversion when checking result from calloc in snmp_output_err_resp(..)
CID: 1368195 |
311465 |
06-Jan-2017 |
ngie |
MFC r311175:
Swap parameters around with parse_syntax_strval(..) for consistency with other parse_* APIs in bsnmp*
Noted by: bz |
311215 |
04-Jan-2017 |
ngie |
MFC r310711:
Don't explicitly build tcp wrappers support into bsnmpd; make it conditional on MK_TCP_WRAPPERS != "no"
This likely fixes an issue seen where some of the USE_TCPWRAPPERS code didn't work as advertised |
311212 |
04-Jan-2017 |
ngie |
MFC r310665:
Only build/install usr.sbin/bsnmpd/modules/snmp_hast if MK_HAST != no |
311209 |
04-Jan-2017 |
ngie |
MFC r310664:
Only build/install usr.sbin/bsnmpd/modules/snmp_wlan if MK_WIRELESS != no |
311152 |
03-Jan-2017 |
ngie |
MFC r310986:
snmp_output_resp: style(9): sort variables by alignment |
310911 |
31-Dec-2016 |
ngie |
MFC r310668:
style(9) fixes: clean up leading whitespace |
310905 |
31-Dec-2016 |
ngie |
MFC r310667:
style(9) fixes: clean up leading whitespace |
310902 |
31-Dec-2016 |
ngie |
MFC r310669:
style(9): clean up whitespace |
310901 |
31-Dec-2016 |
ngie |
MFC r310648:
style(9): clean up trailing whitespace |
310899 |
31-Dec-2016 |
ngie |
MFC r310666,r310675:
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 |
310896 |
31-Dec-2016 |
ngie |
MFC r310654:
Install snmpmod.3 as all of the bsnmpd APIs it documents |
310563 |
26-Dec-2016 |
ngie |
MFC r310196:
Fix some minor typos with begemotBridgeTpLearnedEntryDiscards and begemotBridgeTpMaxAddresses
Bump LAST-UPDATED for the MIB, per the change |
310561 |
26-Dec-2016 |
ngie |
MFC r310203:
Clean up parse_ip(..)
- Clean up trailing whitespace - Fix variable alignment |
309843 |
11-Dec-2016 |
marcel |
MFC r305855, r306297, r306300, r306312-r306313
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 |
302408 |
08-Jul-2016 |
gjb |
Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle. Prune svn:mergeinfo from the new branch, as nothing has been merged here.
Additional commits post-branch will follow.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
301285 |
03-Jun-2016 |
bdrewery |
WITH_META_MODE: Don't expect meta files for side-effect generated files.
The first file in these lists will generate everything else so only it should be getting a .meta file. With bmake's missing=yes meta feature these would otherwise cause a rebuild without the .NOMETA hint.
Sponsored by: EMC / Isilon Storage Division
|
300167 |
18-May-2016 |
glebius |
Revert r299830, it has couple of fatal errors.
The CMSG_ family of macros take care of alignment, so we don't need r299830 at all, even if it was correct. Put NO_WCAST_ALIGN into Makefile.
Together with: peter
|
299831 |
15-May-2016 |
ngie |
Remove NO_WERROR and add WARNS?= 6
This now compiles cleanly on all architectures
MFC after: 1 month Tested with: clang 3.8, gcc 4.2.1, gcc 4.5, make tinderbox Sponsored by: EMC / Isilon Storage Division
|
299815 |
15-May-2016 |
ngie |
Remove NO_WERROR.clang from this Makefile
This compiles with clang without warnings
MFC after: 1 month Sponsored by: EMC / Isilon Storage Division
|
299814 |
15-May-2016 |
ngie |
Replace malloc + memset(.., 0, ..) with calloc calls
MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
|
299811 |
15-May-2016 |
ngie |
Use strdup instead of malloc + strlcpy
Fix error messages on failure for calloc/strdup
MFC after: 3 weeks Sponsored by: EMC / Isilon Storage Division
|
299810 |
15-May-2016 |
ngie |
Correct function names that failed in error messages
It should be calloc/strdup, not malloc
MFC after: 3 weeks Sponsored by: EMC / Isilon Storage Division
|
299807 |
15-May-2016 |
ngie |
Replace QUADFMT with %ju and QUADXFMT with %jx and cast values with uintmax_t
This will cure some -Wformat warnings
MFC after: 1 week Reported by: clang, gcc Sponsored by: EMC / Isilon Storage Division
|
299806 |
15-May-2016 |
ngie |
Bump WARNS to 6
MFC after: 1 month Sponsored by: EMC / Isilon Storage Division
|
299805 |
15-May-2016 |
ngie |
Fix up r299769
Similar to r299802, it was noted that using nitems on scalar pointers is invalid.
Use strdup instead of malloc + strlcpy (which is what the old code was doing anyhow).
MFC after: 1 week Pointyhat to: ngie Sponsored by: EMC / Isilon Storage Division
|
299803 |
15-May-2016 |
ngie |
Replace malloc + memset(.., 0, ..) with calloc calls
MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
|
299802 |
15-May-2016 |
ngie |
Fix up both r299764 and r299770
nitems was wrong too, as it was being tested against a pointer instead of a buffer on the stack.
Since the old code was just doing malloc, then strlcpy'ing the contents of the source buffer into the destination buffer, replace it all with a call to strdup..
Reported by: bde MFC after: 1 week X-MFC with: r299764, r299770 Supersized Duncecap to: ngie Sponsored by: EMC / Isilon Storage Division
|
299783 |
14-May-2016 |
ngie |
Convert tok from enum tok to int32_t in function calls
get_token(..) returns int32_t, not enum tok, and in many cases tests for items not in enum tok (e.g. '('). Make the typing consistent with get_token, which includes a domino effect of changing enum tok to int32_t.
MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
|
299778 |
14-May-2016 |
ngie |
Use a consistent errno save/restore pattern before running strtoul
- Save errno - Set errno to 0 - Call strtoul - Test errno (optional, but many calls to strtoul did this afterwards)
Some of the code was setting errno = 0 after calling strtoul, not setting errno = 0, or setting errno to saved_errno after the call, but before the test. These all have unwanted behavioral side-effects, depending on the initial value of errno and whether or not the input to strtoul was correct or incorrect.
MFC after: 3 weeks Sponsored by: EMC / Isilon Storage Division
|
299774 |
14-May-2016 |
ngie |
Do minimal work necessary to cure a -Wunused-but-set-variable warning from gcc
How errno is saved before and restored after strtoul calls needs a rethink
MFC after: 1 week Reported by: gcc 5.x Sponsored by: EMC / Isilon Storage Division
|
299770 |
14-May-2016 |
ngie |
Fix up r299764
I meant to use nitems, not sizeof(..) with the destination buffer. Using sizeof(..) on a pointer will always truncate the output in the destination buffer incorrectly
Pointyhat to: ngie MFC after: 1 week X-MFC with: r299764 Sponsored by: EMC / Isilon Storage Division
|
299769 |
14-May-2016 |
ngie |
Use the size of the destination buffer instead of the malloc size, repeated, in order to mute a -Wstrlcpy-strlcat-size warning
MFC after: 1 week Reported by: clang Sponsored by: EMC / Isilon Storage Division
|
299767 |
14-May-2016 |
ngie |
Mute sign compare warning by casting rc to u_int to match nbindings' type
rc cannot be negative -- that was already tested for earlier on in the function
MFC after: 1 week Reported by: clang, gcc Sponsored by: EMC / Isilon Storage Division
|
299766 |
14-May-2016 |
ngie |
Fix logically dead code pointed out by clang/Coverity
parse_context, parse_user_security: test for validity of results from parse_ascii(..) with by casting to int32_t and comparing to -1; comparing unsigned types to negative values will always be false.
Reported by: clang, Coverity CID: 1011432, 1011433 MFC after: 3 weeks Sponsored by: EMC / Isilon Storage Division
|
299765 |
14-May-2016 |
ngie |
Fix theoretical buffer overflow issues in snmp_oid2asn_oid
Increase the size of `string` by 1 to account for the '\0' terminator. In the event that `str` doesn't contain any non-alpha chars, i would be set to MAXSTR, and the subsequent strlcpy call would overflow by a character.
Remove unnecessary `string[i] = '\0'` -- this is already handled by strlcpy.
MFC after: 1 week Reported by: clang Sponsored by: EMC / Isilon Storage Division
|
299764 |
14-May-2016 |
ngie |
Use the size of the destination buffer, not the source buffer.
Technically this is a no-op, but mute the clang warning in case the malloc call above for fstring ever changes in the future
Reported by: clang MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
|
299763 |
14-May-2016 |
ngie |
Mute -Wstrlcpy-strlcat-size warning by using nitems with the size of the buffer
This is a no-op as the malloc above set the size of the buffer to the size used below, but this keeps things consistent in case the malloc call changes somehow.
MFC after: 1 week Reported by: clang Sponsored by: EMC / Isilon Storage Division
|
299762 |
14-May-2016 |
ngie |
Mark snmptoolctx unused in parse_authentication(..), parse_privacy(..), parse_context(..), and parse_user_security(..).
MFC after: 1 week Reported by: clang, gcc Sponsored by: EMC / Isilon Storage Division
|
299761 |
14-May-2016 |
ngie |
parse_ascii: make count size_t to mute a -Wsign-compare issue
count is always unsigned.
MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
|
299760 |
14-May-2016 |
ngie |
Sort variables in parse_ascii(..) per style(9)
MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
|
299759 |
14-May-2016 |
ngie |
Use calloc instead of memset(.., 0, ..) + malloc
MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
|
299712 |
14-May-2016 |
ngie |
Fix some trivial clang/gcc warnings in bsnmptc.c
- By definition, `enum snmp_tc` can't be false (the implied starting sequence index for the enum is 0). Don't test for it being < 0. - Staticize `struct snmp_text_conv` to mute a -Wmissing-variable-declarations warning from clang. - Remove set but unused variable, ptr, in parse_bridge_id(..) and parse_bport_id(..) to mute warning from gcc 4.9+. - Mark value and string unused in snmp_inetaddr2oct(..) and parse_inetaddr(..) as they're just stub functions.
MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
|
299711 |
14-May-2016 |
ngie |
Fold two malloc + memset(.., 0, ..) calls into equivalent calloc calls
MFC after: 3 weeks Sponsored by: EMC / Isilon Storage Division
|
299710 |
14-May-2016 |
ngie |
Staticize global variables only used in bsnmpimport.c to fix -Wmissing-variable-declarations warnings
MFC after: 3 weeks Reported by: clang Sponsored by: EMC / Isilon Storage Division
|
299701 |
13-May-2016 |
ngie |
Move _bsnmptools_debug extern from bsnmpmap.c to bsnmptools.h
It was used in bsnmpmap.c but was stored in bsnmptools.c; moving the extern to the header allows us to cover all of our bases for the variable, and allows _bsnmptools_debug to be used in the future elsewhere -- not just bsnmpmap.c.
MFC after: 3 weeks Sponsored by: EMC / Isilon Storage Division
|
299593 |
13-May-2016 |
truckman |
Properly compute the size argument to pass to malloc().
Reported by: Coverity CID: 1198856 MFC after: 1 week
|
298750 |
28-Apr-2016 |
ngie |
Use a better idiom for finding UTC prefixed timezones
Instead of copy-pasting the string literal for "UTC" 3 times and using strlen, use a static char[3] buffer and sizeof(..).
MFC after: 3 days X-MFC with: r298507 Submitted by: kib Sponsored by: EMC / Isilon Storage Division
|
298507 |
23-Apr-2016 |
ngie |
Fix looking for "UTC" at start of ptr by using strnmp instead of improperly unrolled equivalent
CID: 1347118 MFC after: 1 week Reported by: Coverity Sponsored by: EMC / Isilon Storage Division
|
298452 |
22-Apr-2016 |
ngie |
Don't try to free `string` (stack allocated char[])
Fix minor style with warnx call while in the neighborhood
MFC after: 1 week CID: 1009683 Reported by: Coverity, gcc 5.x Sponsored by: EMC / Isilon Storage Division
|
298451 |
22-Apr-2016 |
ngie |
Don't use `entry` after free in the "already in lists" case
Return with 0 as it isn't an error.
MFC after: 1 week CID: 1006085 Reported by: Coverity Obtained from: Isilon OneFS (part of r493633) Submitted by: Thor Steingrimsson <thor.steingrimsson@isilon.com> Sponsored by: EMC / Isilon Storage Division
|
298107 |
16-Apr-2016 |
gjb |
Merge the projects/release-pkg branch to head.
This allows packaging the base system with pkg(8), including but not limited to providing the ability to provide upstream binary update possibilities for non-tier-1 architectures.
This merge is a requirement of the 11.0-RELEASE, and as such, thank you to everyone that has tested the project branch.
Documentation in build(7) etc. is still somewhat sparse, but updates to those parts will follow.
Sponsored by: The FreeBSD Foundation
|
295989 |
24-Feb-2016 |
bdrewery |
DIRDEPS_BUILD: Regenerate without local dependencies.
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
|
295435 |
09-Feb-2016 |
kib |
Rename P_KTHREAD struct proc p_flag to P_KPROC.
I left as is an apparent bug in ntoskrnl_var.h:AT_PASSIVE_LEVEL() definition.
Suggested by: jhb Sponsored by: The FreeBSD Foundation
|
291563 |
01-Dec-2015 |
bdrewery |
META MODE: Update dependencies with 'the-lot' and add missing directories.
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
|
291307 |
25-Nov-2015 |
bdrewery |
META MODE: Prefer INSTALL=tools/install.sh to lessen the need for xinstall.host.
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
|
288226 |
25-Sep-2015 |
bdrewery |
META_MODE: Remove DEP_RELDIR from Makefile.depend files.
This has not been needed since r284171 in projects/bmake.
Sponsored by: EMC / Isilon Storage Division
|
285719 |
20-Jul-2015 |
pfg |
snmp_hostres(3): Fix buffer overflow.
Actually just a typo. Detected by gcc + FORTIFY_SOURCE patches.
CID: 1007594 MFC after: 3 days
|
284481 |
16-Jun-2015 |
sjg |
new depends
|
284345 |
13-Jun-2015 |
sjg |
Add META_MODE support.
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
|
281325 |
09-Apr-2015 |
bapt |
bsnmptools does not depends on libcrypto
|
276258 |
26-Dec-2014 |
joel |
mdoc: sort SEE ALSO.
|
275054 |
25-Nov-2014 |
bapt |
Convert usr.sbin to LIBADD Reduce overlinking
|
274900 |
23-Nov-2014 |
dim |
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 after: 3 days
|
268351 |
07-Jul-2014 |
marcel |
Remove ia64.
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
|
267971 |
27-Jun-2014 |
loos |
Simplify the code a little bit using the update_sensor_sysctl() routine to 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
|
267969 |
27-Jun-2014 |
loos |
Correct the buffer length check to avoid overflows.
Found with: Coverity Scan CID: 1222502, 1222503
|
267668 |
20-Jun-2014 |
bapt |
use .Mt to mark up email addresses consistently (part2)
PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de>
|
266961 |
02-Jun-2014 |
loos |
Never, ever, abbreviate the month names on manual pages.
Pointed out by: brueffer Pointy hat to: loos
|
266936 |
01-Jun-2014 |
loos |
Adds the bsnmp module to export the temperature data from lm75 sensors on the system.
Together with lm75(4) this module allows easy temperature monitoring over SNMP, specially for embedded systems.
Manual page reviewed by: brueffer (D128)
|
266931 |
31-May-2014 |
brueffer |
Grammar cleanup; sort SEE ALSO.
MFC after: 1 week
|
265420 |
06-May-2014 |
imp |
Use src.opts.mk in preference to bsd.own.mk except where we need stuff from the latter.
|
262494 |
25-Feb-2014 |
brueffer |
Rough cleanup (new sentence -> new line, grammar, spelling, mdoc). This could use more work.
PR: 187035 (in part) Submitted by: Bjorn Heidotting MFC after: 1 week
|
261797 |
12-Feb-2014 |
glebius |
Fix world build WITHOUT_PF.
Sponsored by: Nginx, Inc.
|
260049 |
29-Dec-2013 |
trociny |
Add mibs for hastd(1) queue stats.
MFC after: 1 week
|
252540 |
03-Jul-2013 |
trociny |
hastResourceWorkerPid is read-only.
Submitted by: jilles MFC after: 3 days
|
252516 |
02-Jul-2013 |
trociny |
Add a mib for worker process ID.
MFC after: 3 days
|
250564 |
12-May-2013 |
trociny |
Revert r250394, which disabled snmp_hast due to libl dependency issue -- the dependency has been removed in r250503.
|
250503 |
11-May-2013 |
trociny |
Get rid of libl dependency. We needed it only to provide yywrap. But yywrap is not necessary when parsing a single hast.conf file.
Suggested by: kib Reviewed by: pjd
|
250405 |
09-May-2013 |
trociny |
Move snmp_hast manual to section 3, where all other manual pages for 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
|
250394 |
08-May-2013 |
peter |
Unbreak build - this can only build on i386 as-is due to use of libl in a .so file, and we currently (intentionally) only build libl.a.
|
250379 |
08-May-2013 |
trociny |
HAST module for bsnmpd(1).
Reviewed by: harti, pjd MFC after: 2 weeks
|
249657 |
19-Apr-2013 |
ed |
Add the Clang specific -Wmissing-variable-declarations to WARNS=6.
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@
|
249375 |
11-Apr-2013 |
joel |
Minor spelling and grammar fixes.
|
248707 |
25-Mar-2013 |
trociny |
hrStorageSize and hrStorageUsed are 32 bit integers, reporting a fs 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
|
245952 |
26-Jan-2013 |
pfg |
Clean some 'svn:executable' properties in the tree.
Submitted by: Christoph Mallon MFC after: 3 days
|
240595 |
17-Sep-2012 |
trociny |
In snmp_hostres, device_map table is used for consistent device table 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
|
240354 |
11-Sep-2012 |
glebius |
Do not count kernel threads as processes for hrSystemProcesses OID.
PR: bin/160494 Submitted by: Jeremy Chadwick <freebsd jdc.parodius.com>
|
240352 |
11-Sep-2012 |
glebius |
Spelling.
|
240233 |
08-Sep-2012 |
glebius |
Merge the projects/pf/head branch, that was worked on for last six months, 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>
|
239462 |
20-Aug-2012 |
dim |
Upgrade our copy of llvm/clang to trunk r162107. With thanks to Benjamin Kramer and Joerg Sonnenberger for their input and fixes.
|
235286 |
11-May-2012 |
gjb |
General mdoc(7) and typo fixes.
PR: 167734 Submitted by: Nobuyuki Koganemaru (kogane!jp.freebsd.org) MFC after: 3 days
|
233648 |
29-Mar-2012 |
eadler |
Remove trailing whitespace per mdoc lint warning
Disussed with: gavin No objection from: doc Approved by: joel MFC after: 3 days
|
233510 |
26-Mar-2012 |
joel |
mdoc: terminate quoted strings.
Reviewed by: brueffer
|
233455 |
25-Mar-2012 |
joel |
Remove superfluous paragraph macro.
|
231564 |
12-Feb-2012 |
ed |
Globally replace u_int*_t from (non-contributed) man pages.
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
|
229933 |
10-Jan-2012 |
syrinx |
Implement an option to execute SNMP walks using GETBULK requests in bsnmpwalk(1) retrieving multiple values with a Single PDU.
Reviewed by: philip@ Tested by: tsanand129 (at) gmail (dot) com
|
229653 |
05-Jan-2012 |
uqs |
Partial backout of r228990, restore original MIB object name.
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.
|
229385 |
03-Jan-2012 |
ed |
Fix subtle typo: compare against idx -- not index.
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
|
228990 |
30-Dec-2011 |
uqs |
Spelling fixes for usr.sbin/
|
228657 |
17-Dec-2011 |
dim |
In usr.sbin/bsnmpd/modules/snmp_wlan/wlan_snmp.h, use the correct enumeration types for the mesh_peering and mesh_forwarding members of struct wlan_iface, to fix enum conversion warnings.
MFC after: 1 week
|
226685 |
24-Oct-2011 |
ivoras |
Apparently, "ada" drives are better treated similarly to "da" drives.
|
226684 |
24-Oct-2011 |
ivoras |
It seems that the warning is much less severe than its message says. The device is certainly added to the list after the first pass.
|
226683 |
24-Oct-2011 |
ivoras |
Fix typo
MFC after: 1 month
|
224584 |
01-Aug-2011 |
uqs |
Fix broken mdoc.
Found by: manlint Approved by: re (kib)
|
223933 |
11-Jul-2011 |
ae |
Use full buffer size in read(2) call, there is no need to preserve the 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
|
222772 |
06-Jun-2011 |
ed |
Remove redundant assignments to WARNS.
For these directories, WARNS is already implied to be 6.
|
222286 |
25-May-2011 |
ru |
[mdoc] Fixed .Dt call.
|
216605 |
20-Dec-2010 |
syrinx |
Unbreak the build by temprorarily not using include directives in bsnmpd(1)' def files, until bsd.snmpmod.mk & Makefiles are fixed to pass proper include path flags to gensnmptree.
|
216594 |
20-Dec-2010 |
syrinx |
Bring in a SNMP module that allows configuration of SNMPv3 Notification targets.
Sponsored by: The FreeBSD Foundation Reviewed by: philip Approved by: philip
|
216485 |
16-Dec-2010 |
syrinx |
Pass proper -Wl,-export-dynamic to ld. Thus bsnmpd(1) compiled with clang properly exports its symbols to the modules.
Submitted by: dim
|
216377 |
11-Dec-2010 |
syrinx |
Remove unnecessary debug/error CFLAGS.
Reported by : pawel.worach (at) gmail (dot) com
|
216323 |
09-Dec-2010 |
syrinx |
Unbreak "make installworld" w/ DESTDIR specified
PR : kern/152939
|
216295 |
08-Dec-2010 |
syrinx |
Add bsnmpd(1)'s SNMP client tools (including SNMPv3 support) to the base system.
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@
|
216294 |
08-Dec-2010 |
syrinx |
In bsnmpd(1) add support for SNMPv3 message processing model, including message authentication, packet encryption & view-based access control (RFC 3412, 3414, 3415).
Sponsored by: The FreeBSD Foundation Reviewed by: philip@ (mostly) Approved by: philip@
|
214489 |
28-Oct-2010 |
uqs |
Fix CPU load reporting independent of scheduler used.
- 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.
|
211397 |
16-Aug-2010 |
joel |
Fix typos, spelling, formatting and mdoc mistakes found by Nobuyuki while translating these manual pages. Minor corrections by me.
Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp>
|
210933 |
06-Aug-2010 |
joel |
Fix typos and spelling mistakes.
|
210504 |
26-Jul-2010 |
syrinx |
Connect the snmp_wlan(3) module to the build.
Sponsored by: The FreeBSD Foundation
|
210502 |
26-Jul-2010 |
syrinx |
Bring in a SNMP module to support monitoring cloned wireless interfaces via bsnmpd(1). The module implements a private BEGEMOT-WIRELESS-MIB.
Sponsored by: The FreeBSD Foundation Reviewed by: philip@ Approved by: philip@
|
210442 |
24-Jul-2010 |
simon |
Make failed open of /dev/mdctl in the bsnmpd hostres module non-fatal. This makes it possible to use the hostres module when bsnmpd is not running as root.
MFC after: 1 week
|
208291 |
19-May-2010 |
uqs |
mdoc: consistently spell our email addresses <foo@FreeBSD.org>
Reviewed by: ru
|
205607 |
24-Mar-2010 |
syrinx |
Now actually implement reading/refreshing/returning data from the 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).
|
205312 |
19-Mar-2010 |
syrinx |
Make sure the snmp_pf module will first refresh its entires if necessary, 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
|
205280 |
18-Mar-2010 |
syrinx |
Add support for retrieving labeled pf filter rule counters.
PR: bin/132847 Submitted by: Szalai Andras <szalai (dot) bandi (at) gmail.com>
|
204596 |
02-Mar-2010 |
uqs |
Remove redundant WARNS?=6 overrides and inherit the WARNS setting from the toplevel directory.
This does not change any WARNS level and survives a make universe.
Approved by: ed (co-mentor)
|
202206 |
13-Jan-2010 |
ed |
Port all applications in usr.sbin/ from libulog to utmpx.
|
201390 |
02-Jan-2010 |
ed |
The last big commit: let usr.sbin/ use WARNS=6 by default.
|
200953 |
24-Dec-2009 |
ed |
Let the snmp_hostres module use utmpx.
Approved by: harti
|
200122 |
05-Dec-2009 |
syrinx |
Make sure enough memory is allocated for a struct pft_entry when refreshing the list of pf tables.
OKed by: philip MFC after: 1 week
|
199291 |
15-Nov-2009 |
attilio |
Collapse devinfo_state_t with device_state_t in order to avoid a structure replication and improve manteneability.
Reviewed by: jhb, imp Tested by: Riccardo Torrini <riccardo at torrini dot org>
|
195767 |
19-Jul-2009 |
kensmith |
Bump the version of all non-symbol-versioned shared libraries in 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)
|
192243 |
17-May-2009 |
kmacy |
add zfs oid to bsnmpd
PR: bin/129360 Submitted by: Ulrich Spoerlein
|
183548 |
02-Oct-2008 |
bms |
Only build the bsnmpd netgraph module if MK_NETGRAPH_SUPPORT is set.
|
179476 |
01-Jun-2008 |
philip |
Use INSERT_OBJECT_INT_LINK_INDEX macro instead of TAILQ_INSERT_TAIL when 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
|
171791 |
08-Aug-2007 |
syrinx |
Keep the snmp_bridge(3) module up to date with if_bridge(4) and add an 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)
|
171173 |
03-Jul-2007 |
mlaier |
Link pf 4.1 to the build: - move ftp-proxy from libexec to usr.sbin - add tftp-proxy - new altq mtag link
Approved by: re (kensmith)
|
170925 |
18-Jun-2007 |
rafan |
- Bump share library version which were missed in last bump
Reported by: jhb Discussed with: deischen, des, doubg, harti Approved by: re (kensmith)
|
168776 |
16-Apr-2007 |
pjd |
s/destory/destroy/ (except for the code in contrib/).
|
167369 |
09-Mar-2007 |
xride |
! is a generic info message
Reviewed by: harti Approved by: harti MFC after: 2 weeks
|
166493 |
04-Feb-2007 |
syrinx |
Remove all #if __FreeBSD_version checks now that RSTP support has been MFCed to RELENG_6. We no longer need that to compile the bridge module under both RELENG_6 and CURRENT.
Approved by: bz (mentor)
|
165643 |
29-Dec-2006 |
bz |
Re-connect snmp_bridge to the build. It survived a make universe (apart from powerpc where the build broke earlier).
|
165642 |
29-Dec-2006 |
bz |
bridge_snmp.h * 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
|
165430 |
21-Dec-2006 |
bz |
ia64 is nit-picking according to tinderbox so temporary disconnect the bridge module from the build until this is fixed.
|
165418 |
20-Dec-2006 |
syrinx |
Connect the snmp_bridge(3) module to the build.
Approved by: bz (mentor)
|
165416 |
20-Dec-2006 |
syrinx |
Keep in sync with the if_bridge(4) module (rev. 1.20 if_bridgevar.h, 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)
|
165415 |
20-Dec-2006 |
syrinx |
Remove an unused variable.
Approved by: bz (mentor)
|
165253 |
15-Dec-2006 |
syrinx |
Do not add 'default:' cases inside a switch() on an enum like the 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)
|
165046 |
09-Dec-2006 |
syrinx |
Instead of explicitly initializing variables to avoid compiler warnings, 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)
|
164997 |
07-Dec-2006 |
syrinx |
Add support for RSTP (RFC4318) to the SNMP bridge monitoring module.
Approved by: bz (mentor)
|
164410 |
19-Nov-2006 |
syrinx |
Bring in a SNMP module to support monitoring if_bridge(4) interfaces 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)
|
164092 |
08-Nov-2006 |
harti |
Make the generated oid.h dependend on the Makefile. The Makefile defines the symbols to be extracted from the MIB and if that list of symbols is changed, oid.h should be re-generated.
|
163840 |
31-Oct-2006 |
glebius |
Fix buildworld.
|
162893 |
30-Sep-2006 |
ru |
Revise markup.
|
160341 |
14-Jul-2006 |
harti |
Reduce the memory requirements for the tables by (1) using malloced strings 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@>
|
157721 |
13-Apr-2006 |
ru |
Add missing library dependencies.
|
156813 |
17-Mar-2006 |
ru |
Reimplementation of world/kernel build options. For details, see:
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)
|
156675 |
13-Mar-2006 |
harti |
Silence some warnings by defining configuration preprocessor symbols.
|
156085 |
27-Feb-2006 |
ru |
A bandaid to unbreak world.
|
155604 |
13-Feb-2006 |
harti |
Link the new file from the vendor fix to the build and install the new MIB files. Add a target to smilint the MIB files.
|
155181 |
01-Feb-2006 |
joel |
Expand contractions.
|
154871 |
26-Jan-2006 |
erwin |
After changing hostres from libdisk to libgeom, it now compiles and runs on amd64, so revert the stopgap from rev. 1.10
Approved by: harti Hardware borrowed from: simon
|
154860 |
26-Jan-2006 |
harti |
Replace ki_ocomm by ki_comm. The former will go away.
Submitted by: Victor Cruceru <soc-victor> Suggested by: Julian Elischer
|
154859 |
26-Jan-2006 |
harti |
Fix a bug in the processor load code: the wrong process was used to get the inital processor load. Also fix compilation on sparc64 without NDEBUG.
|
154858 |
26-Jan-2006 |
harti |
Fix false positives when searching for disks. Things like adv(4) are not disks.
Submitted by: Victor Cruceru <soc-victor@>
|
154856 |
26-Jan-2006 |
harti |
Fix the MIB to use libgeom instead of libdisk.
Submitted by: Victor Cruceru <soc-victor>
|
154282 |
13-Jan-2006 |
obrien |
Unbreak the AMD64 build by forgoing the 'snmp_hostres' functionality.
Approved by: harti
|
154249 |
12-Jan-2006 |
harti |
Fix build without -DNDEBUG.
Spotted by: obrien
|
154245 |
12-Jan-2006 |
obrien |
assert(3) is not used here.
|
154134 |
09-Jan-2006 |
harti |
Connect the HOSTRES MIB to the build.
|
154133 |
09-Jan-2006 |
harti |
msg
|
152970 |
30-Nov-2005 |
philip |
Check for altq presence during module init, and allow module to work even if altq is not present (just disable the altq bits in that case).
PR: 89601 Submitted by: Juraj Lutter <otis -at- sk.freebsd.org> MFC after: 3 days
|
152768 |
24-Nov-2005 |
ru |
Fix prototypes.
|
152269 |
10-Nov-2005 |
harti |
Use the new bsd.snmpmod.mk makefile to build the modules. The -I pointers into the contrib directory are still necessary for some of the Makefiles, because the C-sources there use non-canonical includes ("" includes) to get at the header files.
|
152268 |
10-Nov-2005 |
harti |
Use the canonical include name for snmpmod.h. The build infrastructure takes already care to pick up the correct version of the file depending on how we build.
|
150928 |
04-Oct-2005 |
harti |
Catch up with the import of bsnmp-1.11. Add a couple of new configuration flags to CFLAGS.
|
149571 |
29-Aug-2005 |
philip |
Fix unhandled malloc errors.
PR: bin/83467 Submitted by: Dan Lukes <dan -at- obluda.cz> Prodded by: glebius MFC after: 3 days
|
148580 |
31-Jul-2005 |
keramida |
Fix all the spelling mistakes I could find in the man pages for words that have at least 3 characters.
MFC after: 1 week Thanks to: Music band ``Chingon'' for keeping me company while searching for these.
|
148297 |
22-Jul-2005 |
kensmith |
Bump the shared library version number of all libraries that have not been bumped since RELENG_5.
Reviewed by: ru Approved by: re (not needed for commit check but in principle...)
|
146613 |
25-May-2005 |
harti |
No need to specify the include subdirectory. During buildworld the correct files are included from a temp. include directory.
Explained by: ru
|
146535 |
23-May-2005 |
harti |
This module was wrongly including header from /usr/include. Give it the correct path to the source headers.
|
146531 |
23-May-2005 |
philip |
Catch up with the bsnmpd daemon's 64bit time ticks.
|
146529 |
23-May-2005 |
harti |
The ticks delivered by the SNMP daemon are now 64-bit, so make our local tick variable which is used to reduce the number of updates from kernel structures and to ensure intra-PDU consistency also 64 bit.
|
146528 |
23-May-2005 |
harti |
Bump the shared library version number of the modules because of changes in the module interface.
|
145560 |
26-Apr-2005 |
harti |
Enable tcp-wrapper support in the SNMP daemon.
Submitted by: glebius
|
143654 |
15-Mar-2005 |
philip |
time_t is signed, so s/uintmax_t/intmax_t/g. Has anyone got an extra pointy hat for me? I'm running out of them.
Spotted by: des Pointy hat to: philip
|
143626 |
15-Mar-2005 |
philip |
Cast time_t to uintmax_t so they can be printed as %ju without breaking on various architectures. This should appease tinderbox on alpha and not break it anywhere else.
Suggested by: harti
|
143612 |
14-Mar-2005 |
philip |
Make this compile properly on 64bit machines.
Pointy hat to: philip
|
143611 |
14-Mar-2005 |
philip |
Add snmp_pf, a bsnmpd module for monitoring (not managing!) pf firewalls. Currently implemented are most things related to states and interfaces, todo are address tables and altq. I've tried to keep this roughly in sync with a project implementing this for net-snmpd.
Reviewed by: harti, dhartmei MFC after: 1 month
|
143601 |
14-Mar-2005 |
harti |
Finish repo-copy of lib/libbsnmp/modules to usr.sbin/bsnmpd/modules. These modules are modules for the daemon, not for the library so they should be where the daemon is.
|
141849 |
13-Feb-2005 |
ru |
who's -> whose
|
140941 |
28-Jan-2005 |
ru |
Let bsd.prog.mk set SRCS and MAN to their default values.
|
140598 |
21-Jan-2005 |
ru |
Fixed punctuation in xrefs.
|
139105 |
21-Dec-2004 |
ru |
NOATM -> NO_ATM
|
136910 |
24-Oct-2004 |
ru |
For variables that are only checked with defined(), don't provide any fake value.
|
136291 |
09-Oct-2004 |
keramida |
Delete a .Fn that had no argument and properly terminate a .Bl with a matching .El
MFC after: 3 days
|
135771 |
24-Sep-2004 |
trhodes |
Fix build in the !NOATM case by using the begemot library in place of using libisc which was a part of BIND8.
Discussed with: des, re, dougb Submitted by: harti (one part) Reviewed by: harti (previous version)
|
133508 |
11-Aug-2004 |
harti |
Link to the build again. The problem was that we need a new gensnmptree for the .def file to parse. This was fixed in Makefile.inc1.
|
133503 |
11-Aug-2004 |
harti |
Again something bad is happening so comment out the ATM module.
|
133496 |
11-Aug-2004 |
harti |
Now, after the import of NgATM-1.1, re-enable the atm module.
|
133424 |
10-Aug-2004 |
scottl |
Disable the snmp_atm module until the source gets fixed. This will unbreak this portion of the build.
|
133393 |
09-Aug-2004 |
harti |
Link the snmp_atm module to the build unless NOATM is defined.
|
133392 |
09-Aug-2004 |
harti |
Now that gensnmptree can read and merge more than one tree make the rule so that the tree .c and .h files can be produced from several trees.
|
133391 |
09-Aug-2004 |
harti |
A module for bsnmpd(1) that exports a MIB that contains information about the local ATM interfaces and allows to change some parameters via SNMP.
|
131594 |
04-Jul-2004 |
ru |
Sort SEE ALSO references (in dictionary order, ignoring case).
|
131504 |
02-Jul-2004 |
ru |
Mechanically kill hard sentence breaks.
|
128279 |
15-Apr-2004 |
harti |
Install the MIBs and the definition file to the new location under /usr/share/snmp.
Noted by: bmah
|
128242 |
14-Apr-2004 |
harti |
Use a MANFILTER to patch the man pages to point to the right path.
Noted by: phk
|
128236 |
14-Apr-2004 |
harti |
Put the name of the module first in the list of all .Nm calls with argument. This makes the output of calling .Nm without an argument more senseful later on.
|
128235 |
14-Apr-2004 |
harti |
Compare with 0 if comparing an integer, not with NULL.
|
128234 |
14-Apr-2004 |
harti |
Move the SNMP MIBs and tree definitions from /usr/share/bsnmp to /usr/share/snmp. This mirrors the use of /usr/local/share/snmp and makes also more sense when non-bsnmp-specific MIBs go in.
|
126643 |
05-Mar-2004 |
markm |
Make NULL a (void*)0 whereever possible, and fix the warnings(-Werror) that this provokes. "Wherever possible" means "In the kernel OR NOT C++" (implying C).
There are places where (void *) pointers are not valid, such as for function pointers, but in the special case of (void *)0, agreement settles on it being OK.
Most of the fixes were NULL where an integer zero was needed; many of the fixes were NULL where ascii <nul> ('\0') was needed, and a few were just "other".
Tested on: i386 sparc64
|
124927 |
24-Jan-2004 |
harti |
Rename the makefile variable MIBS to BMIBS so that it does not conflict with the environment variable MIBS that is used by net-snmp.
|
124926 |
24-Jan-2004 |
harti |
Rename the MIBS makefile variable to BMIBS so that it does not conflict with the environment variable MIBS that is used by net-snmp.
|
124873 |
23-Jan-2004 |
harti |
Create the OID and tree files while building the modules and the daemon instead of creating them by hand and storing them in the CVS tree. Add gensnmptree to the bootstrap tools (it is used to generated these files). This simplifies the update procedure.
Submitted by: ru
|
124868 |
23-Jan-2004 |
harti |
Update generated files.
|
124867 |
23-Jan-2004 |
harti |
Catch up with import of version 1.5a of bsnmp.
|
124866 |
23-Jan-2004 |
harti |
Catch up with the import of version 1.5a of bsnmp.
Fix the script to insert $FreeBSD$ into the generated file instead of the script's FreeBSD id.
|
124865 |
23-Jan-2004 |
harti |
Style: remove an empty line.
|
124726 |
19-Jan-2004 |
ru |
Clean up makefiles.
Reviewed by: harti
|
122758 |
15-Nov-2003 |
harti |
Replace all uses of the old netgraph constants NG_*LEN by the new constants NG_*SIZ that include the trailing NUL byte. This change is mostly mechanical except for the replacement of a couple of snprintf() and sprintf() calls with strlcpy.
|
122611 |
13-Nov-2003 |
harti |
Add an empty definition of the MIBS variable so that the makefile does not try to use a MIBS definition from the environment.
Submitted by: Joe Marcus Clarke <marcus@marcuscom.com>
|
122568 |
12-Nov-2003 |
harti |
The snmp_netgraph module depends on libnetgraph. So add a dependency and add libnetgraph to the list of prebuilt libraries in the main Makefile.
Reviewed by: ru
|
122420 |
10-Nov-2003 |
harti |
Correct the include path so that the include files are found with include "...".
|
122416 |
10-Nov-2003 |
harti |
Fix the build by adjusting the include directives. The problem was that the sources use "..." includes to get at include files that later on reside in an include sub-directory.
|
122407 |
10-Nov-2003 |
harti |
Add the build infrastructure for the SNMP daemon that is the base for the NgATM ILMI daemon and for the tree parsing helper program.
|
122405 |
10-Nov-2003 |
harti |
Add build infrastructure for libbsnmp and the modules. Add the netgraph module for the SNMP daemon.
|