Blame testing/fulltests/unit-tests/T101pdu_type_clib.c
|
Packit |
fcad23 |
/* HEADER PDU type descriptions */
|
|
Packit |
fcad23 |
const char *pdu_description;
|
|
Packit |
fcad23 |
pdu_description = snmp_pdu_type(SNMP_MSG_GET);
|
|
Packit |
fcad23 |
OKF((strcmp(pdu_description, "GET") == 0),
|
|
Packit |
fcad23 |
("SNMP GET PDU type did not return the expected identifier (GET): %s",
|
|
Packit |
fcad23 |
pdu_description));
|
|
Packit |
fcad23 |
|
|
Packit |
fcad23 |
#ifdef NETSNMP_NO_WRITE_SUPPORT
|
|
Packit |
fcad23 |
pdu_description = snmp_pdu_type(163);
|
|
Packit |
fcad23 |
OKF((strcmp(pdu_description, "?0xA3?") == 0),
|
|
Packit |
fcad23 |
("SNMP SET PDU type did not return the expected unknown identifier (?0xA3?): %s",
|
|
Packit |
fcad23 |
pdu_description));
|
|
Packit |
fcad23 |
#endif /* NETSNMP_NO_WRITE_SUPPORT */
|