History log of /openbsd/usr.sbin/snmpd/parse.y (Results 1 – 25 of 91)
Revision Date Author Comments
# ad2d1a44 03-Jun-2024 anton <anton@openbsd.org>

Passing a NULL digest to SHA routines from libcrypto is no longer
supported.

ok tb@


# ba93604f 20-Feb-2024 martijn <martijn@openbsd.org>

trap receiver is special in that the OID is optional. Make sure that we
accept a NULL descriptor, which results in an OID length of 0.

Found by and OK sthen@


# 17240de1 06-Feb-2024 martijn <martijn@openbsd.org>

Let the config parser make use of the mib_string2oid().
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
w

Let the config parser make use of the mib_string2oid().
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@

show more ...


# f0bcdb5c 06-Feb-2024 martijn <martijn@openbsd.org>

Replace most smi_oid2string() calls with the new mib_oid2string().
smi_oid2string() is still called from trap handle context to not break
any existing scripts.

OK tb@


# c3100810 06-Feb-2024 martijn <martijn@openbsd.org>

Load MIB files during startup. The default directory is
/usr/share/snmp/mibs, but one or more directories can be configured via
the "mib directory" option.

OK tb@


# a9292d2a 21-Dec-2023 martijn <martijn@openbsd.org>

Clean up snmpd's header situation.

With the help of tb@ and include-what-you-use.

OK tb@


# 70787abd 18-Dec-2023 martijn <martijn@openbsd.org>

Add a family argument to host(). This allows us to force a specific address
family for source-address, which must be in line with the destination
address.

OK jca@


# 35b9b084 18-Dec-2023 martijn <martijn@openbsd.org>

Fix copy-paste error for setting source-address in trap receiver.

OK jca@


# ab8dd476 21-Nov-2023 martijn <martijn@openbsd.org>

Make RTFILTER/filter-routes a simple boolean assignment, since the
specific value isn't used anymore, and is just used to generate an
argument for snmpd_metrics.

OK tb@


# d791c660 12-Nov-2023 martijn <martijn@openbsd.org>

Now that smi.c is basically an oid/name translator, let smi_insert()
create the struct oid and let parse.y supply the arguments.

OK tb@


# 9352f69f 12-Nov-2023 martijn <martijn@openbsd.org>

Move snmpd.conf's oid keyword into application_internal.c. These objects
get registered under their own backend name, so that they can't overlap
with the internal regions. This removes the last consu

Move snmpd.conf's oid keyword into application_internal.c. These objects
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@

show more ...


# 60cc2743 04-Nov-2023 martijn <martijn@openbsd.org>

Move SNMPv2-MIB::system from mib.c into the new application_internal.c.
This was the last consumer of mib.c, so send it to the great bitbucket
in the sky.

This move removes the sysORTable, but it wa

Move SNMPv2-MIB::system from mib.c into the new application_internal.c.
This was the last consumer of mib.c, so send it to the great bitbucket
in the sky.

This move removes the sysORTable, but it was basically non-functioning
anyway and removal of previous entries from the table didn't caused
any fallout that reached my ears.
I hope to add proper sysORTable/agent-capabilities support, which
is compatible with AgentX's {Add,Remove}AgentCaps, soon.

OK tb@

show more ...


# be2edbd6 24-Oct-2023 martijn <martijn@openbsd.org>

Remove filter-pf-addresses. This feature has been deprecated since 7.2 in
favour of 'blocklist pfTblAddrTable'.

OK tb@


# 5f1d9bbf 06-Oct-2022 martijn <martijn@openbsd.org>

Remove a lot of old (dead) code that's either been superseded, or moved to
snmpd_metrics.

OK benno@ sthen@


# 4100cc5f 23-Aug-2022 martijn <martijn@openbsd.org>

(Re)add support for agentx in snmpd
Current omissions in protocol support are notifications,
index (de)allocation, and agent capabilities.

Help testing sthen@
Feedback/tweaks/OK jmatthew@


# d8495b0f 30-Jun-2022 martijn <martijn@openbsd.org>

Be more explicit in filter-pf-addresses deprication message by mentioning
blocklist pfTblAddrTable in full.

Requested by and OK sthen@, who also OKed the previous commit.


# 614c3698 30-Jun-2022 martijn <martijn@openbsd.org>

Introduce a blocklist backend and keyword.

This allows the admin to specify a full region of the OID tree to be
blocked and simply returns NOSUCHOBJECT/ENDOFMIBVIEW.

This deprecates filter-pf-addre

Introduce a blocklist backend and keyword.

This allows the admin to specify a full region of the OID tree to be
blocked and simply returns NOSUCHOBJECT/ENDOFMIBVIEW.

This deprecates filter-pf-addresses in favour of:
blocklist pfTblAddrTable

OK tb@

show more ...


# fd2e9d5d 28-Jun-2022 martijn <martijn@openbsd.org>

Use smi_string2oid instead of ober_string2oid in parse.y's oid definition.
This allows admins to configure oids as pretty symbolic names, next to the
current numeric names.

OK sthen@


# a7a73940 21-Nov-2021 martijn <martijn@openbsd.org>

getaddrinfo doesn't resolve numeric hostname in the !AI_NUMERICHOST case
if family in resolv.conf is not set to its specific family.

e.g. 0.0.0.0 will not resolve if family is set to "family inet6"

getaddrinfo doesn't resolve numeric hostname in the !AI_NUMERICHOST case
if family in resolv.conf is not set to its specific family.

e.g. 0.0.0.0 will not resolve if family is set to "family inet6"

Fix this by first trying to resolve with AI_NUMERIC set and if EAI_NONAME
is returned (it's an actual hostname) retry with an empty ai_flags.

bug reported by and OK sthen@

show more ...


# 39d554e5 25-Oct-2021 martijn <martijn@openbsd.org>

If we use type to SNMP_V2 we should check against that.

Reported by Johan Huldtgren (jhuldtgren <at> gmail <dot> com) via sthen@

OK sthen@


# 0c569d7e 20-Oct-2021 gerhard <gerhard@openbsd.org>

Add missing semicolon at the end of the listen_udptcp rule

ok otto@


# 08f6ba19 15-Oct-2021 naddy <naddy@openbsd.org>

Don't declare variables as "unsigned char *" that are passed to
functions that take "char *" arguments. Where such chars are
assigned to int or passed to ctype functions, explicitly cast them
to uns

Don't declare variables as "unsigned char *" that are passed to
functions that take "char *" arguments. Where such chars are
assigned to int or passed to ctype functions, explicitly cast them
to unsigned char.

For OpenBSD's clang, -Wpointer-sign has been disabled by default,
but when the parse.y code was built elsewhere, the compiler would
complain.

With help from millert@
ok benno@ deraadt@

show more ...


# d56dad13 09-Oct-2021 deraadt <deraadt@openbsd.org>

delete unneccessary arpa/nameser.h includes
ok millert


# ab858812 02-Sep-2021 martijn <martijn@openbsd.org>

Allow snmpd(8) to send SNMPv3 traps.

OK jmatthew@


# a7950217 10-Aug-2021 martijn <martijn@openbsd.org>

Overlooked a listen_tcp that needed removal in previous commit.
This caused listen on tcp lines to fail to parse.

OK sthen@


1234