| 1 |
/* HEADER PDU type descriptions */ |
| 2 |
const char *pdu_description; |
| 3 |
pdu_description = snmp_pdu_type(SNMP_MSG_GET); |
| 4 |
OKF((strcmp(pdu_description, "GET") == 0), |
| 5 |
("SNMP GET PDU type did not return the expected identifier (GET): %s", |
| 6 |
pdu_description)); |
| 7 |
|
| 8 |
#ifdef NETSNMP_NO_WRITE_SUPPORT |
| 9 |
pdu_description = snmp_pdu_type(163); |
| 10 |
OKF((strcmp(pdu_description, "?0xA3?") == 0), |
| 11 |
("SNMP SET PDU type did not return the expected unknown identifier (?0xA3?): %s", |
| 12 |
pdu_description)); |
| 13 |
#endif /* NETSNMP_NO_WRITE_SUPPORT */ |