Age | Commit message (Collapse) | Author |
|
supported.
ok tb@
|
|
partly checked by millert@
|
|
stdin, stdout, stderr are reserverd. They should point to a terminal,
a redirect file or pipe, or /dev/null. Closing them and allocating
arbitrary files in those places is not good. Call closefrom with
4 to keep /dev/null open in snmpd_metrics.
OK martijn@
|
|
redundant since we call daemon() earlier.
ok bluhm@
|
|
processes. Synced from relayd.
ok florian@
|
|
|
|
meaning there could be garbage left in the other fields. Somehow this
only caused issues in mktime() when /etc/localtime is set to GMT.
Initialize tm to 0.
While here fix a type-O in the format string and make the invalid
strlen for LAST-UPDATED message more consistent with the other 2 error
messages.
Found by and OK sthen@
|
|
accept a NULL descriptor, which results in an OID length of 0.
Found by and OK sthen@
|
|
serious flaws.
Issue reported and analysis by Steffen Christgau.
OK tb@
|
|
format to which the values need to adhere. Implement checks, so that we
don't send illegal values to the client.
OK tb@
|
|
If a descriptor is not found in the loaded MIB files it falls back to
the old smi_oid2string(), which then throws a deprecation warning. This
won't trigger for most cases in the default install, but the
UCD-DISKIO-MIB and dependencies aren't included (yet?) (which can be
fixed by manually including them via "mib directory") and there's a
couple of misspellings (e.g. mib_2 vs mib-2, and
usmStatsNotInTimeWindow vs usmStatsNotInTimeWindows).
Feedback and OK tb@
|
|
smi_oid2string() is still called from trap handle context to not break
any existing scripts.
OK tb@
|
|
/usr/share/snmp/mibs, but one or more directories can be configured via
the "mib directory" option.
OK tb@
|
|
supported yet. SMIv1 is not supported. Parsing is done in a strict
manner, but except for the (deprecated) IPV6-TC MIB everything from
IETF/IANA that I found parses.
For now this code will be used OID<->name translations, but other
functionality could be added in the future.
This commit just includes the parser, usage and including the MIB files
will be done in separate commits.
Go ahead from tb@
|
|
OK martijn@
|
|
information during config-parsing can be displayed.
OK tb@
|
|
the config and was never actually displayed because of insufficient
verbosity level during config-parsing and would display the wrong auth
algorithm for SHA2.
OK tb@
|
|
MIBDECL() and MIBEND are only used inside mib.h, so move their definition
in there.
OK tb@
|
|
With the help of tb@ and include-what-you-use.
OK tb@
|
|
family for source-address, which must be in line with the destination
address.
OK jca@
|
|
OK jca@
|
|
- MIB_snmpInReadOnlys was tried to be registered twice, leading to a leak
of the second instance. Prevent this mistake in the future by making a
double registration fatal.
- The response buffer is owned by the backend, so the backend must also
free it.
OK tb@
|
|
have a zero appended.
OK tb@
|
|
OK tb@
|
|
specific value isn't used anymore, and is just used to generate an
argument for snmpd_metrics.
OK tb@
|
|
data left inside sm_data. If there's an incomplete packet left in the
buffer it will be called from snmpe_tryparse, if there's a complete
packet left we can end up with new events from the tcp socket, which the
tcp subsystem isn't prepared to handle.
OK tb@
|
|
to varbindlen, since its only use is to print the varbindlist via
appl_pdu_log() and both are further properly initialized in
appl_request_upstream_resolve().
This fixes a cosmetic off by one for getbulk requests.
OK tb@
|
|
APPL_VBSTATE_MUSTFILL state, else snmpd won't like use once we reach
EOMV of our view of the world.
OK tb@
|
|
OK claudio@ miod@
|
|
the OID() logic into MIBDECL().
Found, tested, and OK jca@
OK tb@
|
|
the original varbindlist's index. In the case of a GetBulkRequest this
must never be larger than the length of the original varbindlist.
OK tb@
|
|
fat. This includes all the o_flags member related defines.
if it compiles ship it/OK tb@
|
|
out of snmpd.h, which aren't used outside of smi.c
OK tb@
|
|
fancy is using it, we can simply rely on ober_oid_cmp().
OK tb@
|
|
OK tb@
|
|
won't have to rely on error-prone smi_oidlen.
OK tb@
|
|
create the struct oid and let parse.y supply the arguments.
OK tb@
|
|
ober_oid_cmp() directly.
OK tb@
|
|
benefit. Remove it and the last consumer of smi_foreach().
OK tb@
|
|
scalar .0 ourselves.
OK tb@
|
|
application_legacy.c companion.
OK tb@
|
|
get registered under their own backend name, so that they can't overlap
with the internal regions. This removes the last consumer of mps.c
OK tb@
|
|
if we're authenticating according to RFC3414 section 2.3.
OK tb@
|
|
mps_getstr(), which after moving the SNMPv2-SMI::snmpV2 into
application_internal returned a noSuchObject. This doesn't seem to have
broken any tools that I'm aware of, but this returns the correct result.
OK tb@
|
|
and gives us a free report-pdu log line in debug mode.
OK tb@
|
|
Now that we have avi_origid it's not needed anymore and aru_pdu needs
to go.
OK tb@
|
|
snmp_message and getting rid of it is also needed for appl_report() to
gather its own information.
OK tb@
|
|
after just setting it, it's a silly idea.
OK tb@
|
|
via application_internal.
OK tb@
|
|
OK tb@
|