freebsd-dev/contrib/bsnmp/lib
Andrey V. Elsukov 48e091f99d Follow the declared behaviour that specifies server string format in
bsnmpclient(3).

snmp_parse_server() function accepts string where some fields can be
omitted: [trans::][community@][server][:port]

"trans" field can be "udp", "udp6", "dgram" and "stream".
"community" can be empty string, if it is omitted, the default value
will be used. For read_community it is "public", for write_comminity
it is "private". "server" field can be hostname, IPv4 address or IPv6
address. IPv6 address should be specified in brackets "[]".
If port is omitted, the default value "snmp" will be used for "udp"
and "udp6" transports. So, now for bsnmpget(1) and bsnmwalk(1) it is
not required to specify all fields in argument of '-s' option. E.g.

  # bsnmpget -s 127.1 sysName.0
  # bsnmpget -s "udp::127.1" sysName.0
  # bsnmpget -s "udp::public@127.1" sysName.0
  # bsnmpget -s "udp::public@127.1:161" sysName.0
  # bsnmpget -s "udp::[::1]" sysName.0
  # bsnmpget -s "udp6::[::1]" sysName.0
  # bsnmpget -s "[fe80::1%lo0]" sysName.0

PR:		236664
Reported by:	olivier
MFC after:	1 month
2019-04-03 12:47:49 +00:00
..
asn1.3 style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
asn1.c style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
asn1.h style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
bsnmpagent.3 style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
bsnmpclient.3 Bump .Dd for the spelling and .Nm updates 2017-01-01 05:16:24 +00:00
bsnmplib.3 Fix spelling errors; bump .Dd for the change 2017-01-01 05:23:01 +00:00
snmp.c Prevent improper memory accesses after calling snmp_pdu_free and snmp_value_free 2016-12-29 00:20:03 +00:00
snmp.h Update bsnmp to version 1.13. This does not bring user-visible changes. 2018-07-03 08:44:40 +00:00
snmpagent.c style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
snmpagent.h style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
snmpclient.c Follow the declared behaviour that specifies server string format in 2019-04-03 12:47:49 +00:00
snmpclient.h Add IPv6 transport for bsnmp. 2019-04-02 12:50:01 +00:00
snmpcrypto.c Make libbsnmp buildable. 2018-09-19 06:39:10 +00:00
snmppriv.h style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
support.c style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
support.h style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
tc.def Add IPv6 transport for bsnmp. 2019-04-02 12:50:01 +00:00