snmp_nms.h 427 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef __SNMP_NMS_Hx__
  2. #define __SNMP_NMS_Hx__
  3. enum {
  4. NMS_GET=0,
  5. NMS_GETNEXT,
  6. NMS_GETBULK,
  7. NMS_SET,
  8. };
  9. typedef struct {
  10. char *buf;
  11. int len;
  12. }snmp_data_t;
  13. typedef struct {
  14. char *community;
  15. char *ip;
  16. char *oid;
  17. }snmp_req_t;
  18. int snmp_nms_init(void);
  19. char* snmp_nms_get(snmp_req_t *req);
  20. char* snmp_nms_getnext(snmp_req_t *req);
  21. char* snmp_nms_getbulk(snmp_req_t *req);
  22. #endif