[BACK]Return to smi.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / snmp

Diff for /src/usr.bin/snmp/smi.c between version 1.6 and 1.7

version 1.6, 2019/10/24 12:39:26 version 1.7, 2020/01/17 09:52:44
Line 365 
Line 365 
                             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])) {

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7