summaryrefslogtreecommitdiff
path: root/testing/fulltests/unit-tests/T101pdu_type_clib.c
blob: 771aa61a7983f05c30cc7ca6d70886c4b7218d12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* HEADER PDU type descriptions */
const char *pdu_description;
pdu_description = snmp_pdu_type(SNMP_MSG_GET);
OKF((strcmp(pdu_description, "GET") == 0),
    ("SNMP GET PDU type did not return the expected identifier (GET): %s",
     pdu_description));

#ifdef NETSNMP_NO_WRITE_SUPPORT
pdu_description = snmp_pdu_type(163);
OKF((strcmp(pdu_description, "?0xA3?") == 0),
    ("SNMP SET PDU type did not return the expected unknown identifier (?0xA3?): %s",
     pdu_description));
#endif /* NETSNMP_NO_WRITE_SUPPORT */