Age | Commit message (Collapse) | Author |
|
jmc@ dislikes a comma before "then" in a conditional, so leave those
untouched.
ok jmc@
|
|
|
|
ok martijn
|
|
ok martijn
|
|
This flips the returned signedness and adds the weight of 2 for
parent-child relationship in both direction.
This makes ober_oid_cmp consistent with the rest of the *_cmp based
functions.
OK tb@
|
|
Similar to what happend in snmpd(8).
OK sthen@
|
|
a space between the subcommand and the flags.
OK sthen@
|
|
Practical experience on several machines after updates suggests the snmp
world isn't really ready for hmac-sha2-256, and the HMAC construction doesn't
require collision resistance (which is the weakness of MD5/SHA1; see e.g.
"New proofs for NMAC and HMAC: Security without collision-resistance",
Bellare 2014).
Feedback from martijn@ (who would prefer to keep using the sha2 hmac),
deraadt@, tb@.
|
|
protocol (-x) default to AES. The old defaults are just not sane anymore.
OK sthen@
|
|
OK sthen@
|
|
changes.
OK sthen@
|
|
|
|
ok martijn@
|
|
used anywhere.
OK jan@
|
|
For now limit to TruthValue implemented on ifPromiscuousMode and
ifConnectorPresent.
OK jan@
|
|
OK deraadt@
|
|
an output format of your choosing.
OK deraadt@ jan@
|
|
garbage to the description column if the server gives us that.
OK jan@
|
|
Some minor touchups while here.
|
|
of the original definition, for better comparability.
While here rename snmpProxies to snmpProxys, since that's what it's called.
Also add the zeroDotZero object.
|
|
It checks on o_oid[0] for 0, which prevents us from adding the ccitt oid
and its zeroDotZero subsidiary. Change this to check for o_name, which is
always set, because mibtree is filled by MIBDECL().
|
|
|
|
This changes a couple of object names, but this makes them comply with the
actual MIB definition.
|
|
use sysContact as a testcase, because it's readily available in snmpd, but
forgetting it's actual textual convention as time went by, which is
DisplayString (which is ASCII).
Add support for the DisplayString textual convention, which is similar to
having no textual convention, except that invalid bytes (value 128 and up)
are printed as UTF-8 replacement characters, or question mark, depending on
LC_CTYPE.
Feedback and OK schwarze@
|
|
Lots of feedback and OK schwarze@
|
|
sysContact is supported with SnmpAdminString, but more shall follow
soon(tm).
Note that this will change output even in the C locale: Previously every
unprintable byte would be tranformed to a '.', with this diff a valid UTF-8
multibyte or unprintable character will be squished into a single dot to
give a better understanding of the intention of the original message.
Invalid bytes will now be printed as question marks.
Lot's of help and back and forth with schwarze@ who also kindly offered to
walk away when I mentioned looking through MIB files for more objects to
convert to this new code, which is understandable.
OK schwarze@
|
|
ok martijn
|
|
|
|
|
|
|
|
for snmp. Minus 503 LoC and about 200KB on binary size.
OK denis@
|
|
smart enough to see that there is a proper check in place to prevent
uninitialized usage.
OK deraadt@
|
|
column for df subcommand. Fixes misalignment in some cases.
|
|
|
|
continue statement for the outer loop is executed in the outer loop.
Found the hard way by breaking snmpd(8) in my local tree.
|
|
- Allow IPv6 addresses to be used based on format.
- Allow IPv6 addresses without brackets skip the port if it results in a
nonsensical address. This allows us to use ::1
- Try to connect to the address immediately instead of only trying the
socket.
- Add pledge unix so we can actually create a unix socket.
Feedback, additional testing and OK jan@
|
|
the import of the df subcommand.
|
|
|
|
|
|
df(1) format.
OK jan@
General positive sounds from the hackroom and Michael W Lucas
|
|
Now we can see proper nosuchinstance and endofmibtree messages.
OK jan@
|
|
This option allows you to skip subsections of a tree and allows for faster
walking with less (undesired) clutter on screen.
OK florian@ jan@
Happy sounds from Michael W. Lucas
|
|
Discussed with jmc@
|
|
While here also fix some wrong definitions.
With help from jmc@
Requested by and OK deraadt@
|
|
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
|
|
ok martijn@ deraadt@
|
|
Requested by and OK deraadt@
|
|
chance that it's part of the new ber structure.
Feedback and OK claudio@
|
|
Noticed by semarie@
Feedback and OK claudio@
|
|
by uninitialized garbage. Crash in snmp(1) found by
regress/usr.sbin/snmpd.
OK martijn@
|