# @(#)snmp.awk.x 1.1 (LANL) 1/15/90
*/
-#ifndef lint
-static const char rcsid[] _U_ =
- "@(#) $Header: /tcpdump/master/tcpdump/print-snmp.c,v 1.64 2005-05-06 07:56:53 guy Exp $ (LBL)";
-#endif
-
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#endif
#include "interface.h"
-#include "addrtoname.h"
#undef OPAQUE /* defined in <wingdi.h> */
+static const char tstr[] = "[|snmp]";
+
/*
* Universal ASN.1 types
* (we only care about the tag values for those allowed in the Internet SMI)
return elem->asnlen + hdr;
trunc:
- fputs("[|snmp]", stdout);
+ printf("%s", tstr);
return -1;
}
const u_char *p = elem->data.str;
TCHECK2(*p, asnlen);
for (i = asnlen; printable && i-- > 0; p++)
- printable = isprint(*p) || isspace(*p);
+ printable = ND_ISPRINT(*p);
p = elem->data.str;
if (printable) {
putchar('"');
return 0;
trunc:
- fputs("[|snmp]", stdout);
+ printf("%s", tstr);
return -1;
}
return 0;
trunc:
- fputs("[|snmp]", stdout);
+ printf("%s", tstr);
return -1;
}