OpenBSD CVS

CVS log for src/usr.sbin/snmpctl/Attic/snmpclient.c


[BACK] Up to [local] / src / usr.sbin / snmpctl

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.22, Fri Aug 16 17:03:55 2019 UTC (4 years, 9 months ago) by martijn
Branch: MAIN
CVS Tags: HEAD
Changes since 1.21: +1 -1 lines
FILE REMOVED

Send snmpctl(8) to the great bitbucket in the sky. You've served us well.

People are now expected to use snmp(1) for all their snmp client needs.

"Go ahead" deraadt@

Revision 1.21 / (download) - annotate - [select for diffs], Wed Jul 31 18:30:53 2019 UTC (4 years, 10 months ago) by martijn
Branch: MAIN
Changes since 1.20: +16 -7 lines
Diff to previous 1.20 (colored)

When walking a leaf return the value itself instead of returning the
getnext value. Based on an older diff.

Reminded and tested by deraadt@

Revision 1.20 / (download) - annotate - [select for diffs], Sat May 11 17:46:02 2019 UTC (5 years, 1 month ago) by rob
Branch: MAIN
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

The BER API is currently used by ldap, ldapd, ldapctl, ypldap, snmpd, and
snmpctl. Separate copies of ber.[ch] have existed and been maintained in sync
in ldap, ldapd, ypldap and snmpd.

This commit moves the BER API into /usr/lib/libutil. All current consumers
already link libutil. ldapd and snmpd regress passes, and release builds.

With help from tb@ and guenther@.

ok deraadt@, tb@

Revision 1.19 / (download) - annotate - [select for diffs], Thu Dec 13 10:54:29 2018 UTC (5 years, 5 months ago) by martijn
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

fix printf statements when compiled with -DDEBUG.

OK deraadt@, tb@, claudio@

Revision 1.18 / (download) - annotate - [select for diffs], Sun Nov 25 14:58:28 2018 UTC (5 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.17: +10 -28 lines
Diff to previous 1.17 (colored)

don't bother with setresuid protection there is no gain doing
from-root-drop without a object to protect.  Rely upon full potential
of pledge.  Instead of late sendto() with address, connect() the udp
socket early so that the main loop can run pledge "stdio"
ok ccardenas claudio florian

Revision 1.17 / (download) - annotate - [select for diffs], Sat Aug 11 04:31:57 2018 UTC (5 years, 10 months ago) by rob
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

Prevent server side overflow for message id in snmp header.

ok sthen@, tb@

Revision 1.16 / (download) - annotate - [select for diffs], Wed Aug 8 18:50:38 2018 UTC (5 years, 10 months ago) by rob
Branch: MAIN
Changes since 1.15: +5 -5 lines
Diff to previous 1.15 (colored)

Some unsigned long to unsigned int cleanup from recent ber (type) changes.

ok claudio@

Revision 1.15 / (download) - annotate - [select for diffs], Thu Feb 8 18:02:06 2018 UTC (6 years, 4 months ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.14: +1 -3 lines
Diff to previous 1.14 (colored)

Kill ber.c support for direct fd read/writes

This mechanism is already unused and annotated with lots of XXX's, no
need to keep it around.  ok claudio@

Revision 1.14 / (download) - annotate - [select for diffs], Thu Aug 10 16:03:10 2017 UTC (6 years, 10 months ago) by rob
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.13: +4 -1 lines
Diff to previous 1.13 (colored)

Pledge snmpctl. Ok jca@, tb@

Revision 1.13 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:21 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.12: +1 -2 lines
Diff to previous 1.12 (colored)

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible.  Annotate <sys/param.h> lines with their current reasons.  Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc.  Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution.  These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)

Revision 1.12 / (download) - annotate - [select for diffs], Tue Nov 18 20:54:29 2014 UTC (9 years, 6 months ago) by krw
Branch: MAIN
Changes since 1.11: +1 -2 lines
Diff to previous 1.11 (colored)

Nuke more obvious #include duplications.

ok deraadt@ millert@ tedu@

Revision 1.11 / (download) - annotate - [select for diffs], Thu May 8 14:48:31 2014 UTC (10 years, 1 month ago) by mikeb
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.10: +4 -3 lines
Diff to previous 1.10 (colored)

Pretty print MIB_ipNetToMediaPhysAddress'es;  ok blambert

Revision 1.10 / (download) - annotate - [select for diffs], Wed Apr 30 07:01:34 2014 UTC (10 years, 1 month ago) by blambert
Branch: MAIN
Changes since 1.9: +117 -1 lines
Diff to previous 1.9 (colored)

replace vis-ified output with human-readable strings
for a few OIDs, with a framework in place to add more
as the mood strikes

ok reyk@ sthen@

Revision 1.9 / (download) - annotate - [select for diffs], Wed Apr 16 08:52:28 2014 UTC (10 years, 1 month ago) by blambert
Branch: MAIN
Changes since 1.8: +15 -6 lines
Diff to previous 1.8 (colored)

close memory leaks in snmp client code

ok reyk@

Revision 1.8 / (download) - annotate - [select for diffs], Mon Oct 7 11:40:09 2013 UTC (10 years, 8 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.7: +46 -30 lines
Diff to previous 1.7 (colored)

Allow to specify the "oid" option multiple times, eg.
snmpctl walk 127.0.0.1 oid system oid ifName

Revision 1.7 / (download) - annotate - [select for diffs], Tue Oct 1 20:55:25 2013 UTC (10 years, 8 months ago) by reyk
Branch: MAIN
Changes since 1.6: +4 -6 lines
Diff to previous 1.6 (colored)

Remove incorret check for bulk walks.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Oct 1 17:32:20 2013 UTC (10 years, 8 months ago) by reyk
Branch: MAIN
Changes since 1.5: +3 -1 lines
Diff to previous 1.5 (colored)

Accept "oid all" for the complete SNMP tree (as an alias to "oid 1.0").

Revision 1.5 / (download) - annotate - [select for diffs], Tue Oct 1 17:20:39 2013 UTC (10 years, 8 months ago) by reyk
Branch: MAIN
Changes since 1.4: +46 -25 lines
Diff to previous 1.4 (colored)

Initial support for the "bulkwalk" command.

Revision 1.4 / (download) - annotate - [select for diffs], Tue Oct 1 15:06:01 2013 UTC (10 years, 8 months ago) by reyk
Branch: MAIN
Changes since 1.3: +21 -1 lines
Diff to previous 1.3 (colored)

Drop privileges when running as root to mitigate the risk.

Revision 1.3 / (download) - annotate - [select for diffs], Tue Oct 1 13:46:04 2013 UTC (10 years, 8 months ago) by reyk
Branch: MAIN
Changes since 1.2: +47 -30 lines
Diff to previous 1.2 (colored)

Reorganize the code a bit to adjust it for an async I/O model.

Revision 1.2 / (download) - annotate - [select for diffs], Tue Oct 1 13:14:18 2013 UTC (10 years, 8 months ago) by reyk
Branch: MAIN
Changes since 1.1: +56 -40 lines
Diff to previous 1.1 (colored)

better error handling

Revision 1.1 / (download) - annotate - [select for diffs], Tue Oct 1 12:41:49 2013 UTC (10 years, 8 months ago) by reyk
Branch: MAIN

Add initial SNMP client utility to snmpctl(8).
For example, snmpctl snmp walk 127.0.0.1

commit it 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.