socsvn commit: r272179 - in soc2014/shonali/head/usr.sbin/bsnmpd/tools: bsnmptools libbsnmptools
shonali at FreeBSD.org
shonali at FreeBSD.org
Sun Aug 10 19:01:05 UTC 2014
Author: shonali
Date: Sun Aug 10 19:01:03 2014
New Revision: 272179
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=272179
Log:
Corrections in bsnmpget.c & bsnmptools.c
Modified:
soc2014/shonali/head/usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c
soc2014/shonali/head/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
Modified: soc2014/shonali/head/usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c
==============================================================================
--- soc2014/shonali/head/usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c Sun Aug 10 18:13:50 2014 (r272178)
+++ soc2014/shonali/head/usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c Sun Aug 10 19:01:03 2014 (r272179)
@@ -637,7 +637,7 @@
value->v.ipaddress6[i] = (uint8_t) v;
}
- value->syntax = SNMP_SYNTAX_IPADDRESS;
+ value->syntax = SNMP_SYNTAX_IP6ADDRESS;
return (0);
}
Modified: soc2014/shonali/head/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
==============================================================================
--- soc2014/shonali/head/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c Sun Aug 10 18:13:50 2014 (r272178)
+++ soc2014/shonali/head/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c Sun Aug 10 19:01:03 2014 (r272179)
@@ -116,6 +116,7 @@
{ "Counter32", SNMP_SYNTAX_COUNTER },
{ "Gauge", SNMP_SYNTAX_GAUGE },
{ "TimeTicks", SNMP_SYNTAX_TIMETICKS },
+ { "IPv6Address", SNMP_SYNTAX_IP6ADDRESS },
{ "Counter64", SNMP_SYNTAX_COUNTER64 },
{ "Unknown", SNMP_SYNTAX_UNKNOWN },
};
@@ -1771,7 +1772,7 @@
snmp_output_ip6address(struct snmp_toolinfo *snmptoolctx, uint8_t *ip)
{
if (GET_OUTPUT(snmptoolctx) == OUTPUT_VERBOSE)
- fprintf(stdout, "%s : ", syntax_strings[SNMP_SYNTAX_IPADDRESS].str);
+ fprintf(stdout, "%s : ", syntax_strings[SNMP_SYNTAX_IP6ADDRESS].str);
fprintf(stdout, "%u.%u.%u.%u.%u.%u.%u.%u.%u.%u.%u.%u.%u.%u.%u.%u",
ip[0], ip[1], ip[2], ip[3], ip[4], ip[5], ip[6], ip[7], ip[8],
ip[9], ip[10], ip[11], ip[12], ip[13], ip[14], ip[15]);
More information about the svn-soc-all
mailing list