OpenBSD CVS

CVS log for src/usr.bin/snmp/snmp.c


[BACK] Up to [local] / src / usr.bin / snmp

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.11 / (download) - annotate - [select for diffs], Sun Aug 2 20:14:10 2020 UTC (3 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, HEAD
Changes since 1.10: +7 -4 lines
Diff to previous 1.10 (colored)

missing {} identified by clang10
ok martijn

Revision 1.10 / (download) - annotate - [select for diffs], Tue Mar 24 14:09:14 2020 UTC (4 years, 1 month ago) by martijn
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.9: +4 -2 lines
Diff to previous 1.9 (colored)

When doing a loop inside a loop for input validation make sure that the
continue statement for the outer loop is executed in the outer loop.

Found the hard way by breaking snmpd(8) in my local tree.

Revision 1.8.2.1 / (download) - annotate - [select for diffs], Sun Oct 27 20:05:12 2019 UTC (4 years, 6 months ago) by tb
Branch: OPENBSD_6_6
Changes since 1.8: +61 -61 lines
Diff to previous 1.8 (colored) next main 1.9 (colored)

The ber_* namespace is used by liblber since time immemorial,
so move our BER API to the unused ober_* prefix to avoid some
breakage in ports.

Problem diagnosed by jmatthew with ber_free() in samba, but
there are many others as pointed out by sthen.

tests & ok rob
ok sthen (who had an almost identical diff for libutil)
"go head hit it" deraadt

OpenBSD 6.6 errata 002

Revision 1.9 / (download) - annotate - [select for diffs], Thu Oct 24 12:39:26 2019 UTC (4 years, 6 months ago) by tb
Branch: MAIN
Changes since 1.8: +61 -61 lines
Diff to previous 1.8 (colored)

The ber_* namespace is used by liblber since time immemorial,
so move our BER API to the unused ober_* prefix to avoid some
breakage in ports.

Problem diagnosed by jmatthew with ber_free() in samba, but
there are many others as pointed out by sthen.

tests & ok rob
ok sthen (who had an almost identical diff for libutil)
"go head hit it" deraadt

Revision 1.8 / (download) - annotate - [select for diffs], Tue Oct 8 10:00:42 2019 UTC (4 years, 7 months ago) by martijn
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE
Branch point for: OPENBSD_6_6
Changes since 1.7: +5 -2 lines
Diff to previous 1.7 (colored)

Free the "e" element in ber_printf_elements if it fails, since there's no
chance that it's part of the new ber structure.

Feedback and OK claudio@

Revision 1.7 / (download) - annotate - [select for diffs], Thu Oct 3 11:02:26 2019 UTC (4 years, 7 months ago) by martijn
Branch: MAIN
Changes since 1.6: +17 -1 lines
Diff to previous 1.6 (colored)

Implement snmp set.

Manpage help jmc@ schwarze@
OK semarie@ claudio@

Revision 1.6 / (download) - annotate - [select for diffs], Wed Sep 18 09:54:36 2019 UTC (4 years, 8 months ago) by martijn
Branch: MAIN
Changes since 1.5: +27 -6 lines
Diff to previous 1.5 (colored)

Add support for SNMPv3/USM privacy.
net-snmp's -3K is supported via the -K parameter, -3K is not supported.

Feedback and OK jmatthew@

Revision 1.5 / (download) - annotate - [select for diffs], Wed Sep 18 09:52:47 2019 UTC (4 years, 8 months ago) by martijn
Branch: MAIN
Changes since 1.4: +28 -3 lines
Diff to previous 1.4 (colored)

Add support for SNMPv3/USM authentication.
net-snmp's -3k is supported via the -k parameter, -3m is not supported.

Feedback and OK jmatthew@

Revision 1.4 / (download) - annotate - [select for diffs], Wed Sep 18 09:48:14 2019 UTC (4 years, 8 months ago) by martijn
Branch: MAIN
Changes since 1.3: +145 -11 lines
Diff to previous 1.3 (colored)

Initial SNMPv3/USM support.
This commit only implements noAuthNoPriv.

Feedback and OK jmatthew@

Revision 1.3 / (download) - annotate - [select for diffs], Wed Sep 18 09:44:38 2019 UTC (4 years, 8 months ago) by martijn
Branch: MAIN
Changes since 1.2: +110 -44 lines
Diff to previous 1.2 (colored)

Move snmp packaging and unpackaging to their own function.
In preparation for SNMPv3/USM support.

Feedback and OK jmatthew@

Revision 1.2 / (download) - annotate - [select for diffs], Tue Aug 27 06:14:28 2019 UTC (4 years, 8 months ago) by martijn
Branch: MAIN
Changes since 1.1: +36 -11 lines
Diff to previous 1.1 (colored)

Better error reporting on malformed packets.

Revision 1.1 / (download) - annotate - [select for diffs], Fri Aug 9 06:17:59 2019 UTC (4 years, 9 months ago) by martijn
Branch: MAIN

Import snmp(1), a new snmp client which aims to be netsnmp compatible for
supported features.  It only supports get, getnext, walk, bulkget, bulkwalk,
trap, mibtree, and is SNMPv1 and SNMPv2c for now.

This will shortly replace snmpctl entirely. People using snmpctl are encouraged
to test and migrate to this code as soon as possible.

Much help with the manpage from schwarze@ and jmc@
No objections from reyk@
"Roll it in" deraadt@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.