version 1.6, 2019/10/24 12:39:26 |
version 1.7, 2020/01/17 09:52:44 |
|
|
print_hint ? "IpAddress: " : "", |
print_hint ? "IpAddress: " : "", |
inet_ntoa(*(struct in_addr *)buf)) == -1) |
inet_ntoa(*(struct in_addr *)buf)) == -1) |
goto fail; |
goto fail; |
} else if (root->be_class == BER_CLASS_CONTEXT && |
} else if (root->be_class == BER_CLASS_CONTEXT) { |
root->be_type == BER_TYPE_EOC) { |
if (root->be_type == SNMP_E_NOSUCHOBJECT) |
str = strdup("No Such Object available on this agent at this OID"); |
str = strdup("No Such Object available on this " |
|
"agent at this OID"); |
|
else if (root->be_type == SNMP_E_NOSUCHINSTANCE) |
|
str = strdup("No Such Instance currently " |
|
"exists at this OID"); |
|
else if (root->be_type == SNMP_E_ENDOFMIB) |
|
str = strdup("No more variables left in this " |
|
"MIB View (It is past the end of the MIB " |
|
"tree)"); |
|
else |
|
str = strdup("Unknown status at this OID"); |
} else { |
} else { |
for (i = 0; i < root->be_len; i++) { |
for (i = 0; i < root->be_len; i++) { |
if (!isprint(buf[i])) { |
if (!isprint(buf[i])) { |