1 /* 2 * MIBs For Dummies header 3 * 4 * $Id$ 5 */ 6 #ifndef NETSNMP_MFD_H 7 #define NETSNMP_MFD_H 8 9 /*********************************************************************** 10 * 11 * return codes 12 * 13 **********************************************************************/ 14 15 /*---------------------------------------------------------------------- 16 * general success/failure 17 */ 18 #define MFD_SUCCESS SNMP_ERR_NOERROR 19 #define MFD_ERROR SNMP_ERR_GENERR 20 21 /* 22 * object not currently available 23 */ 24 #define MFD_SKIP SNMP_NOSUCHINSTANCE 25 26 /* 27 * no more data in table (get-next) 28 */ 29 #define MFD_END_OF_DATA SNMP_ENDOFMIBVIEW 30 31 /*---------------------------------------------------------------------- 32 * set processing errors 33 */ 34 /* 35 * row creation errors 36 */ 37 #define MFD_CANNOT_CREATE_NOW SNMP_ERR_INCONSISTENTNAME 38 #define MFD_CANNOT_CREATE_EVER SNMP_ERR_NOCREATION 39 40 /* 41 * not writable or resource unavailable 42 */ 43 #define MFD_NOT_WRITABLE SNMP_ERR_NOTWRITABLE 44 #define MFD_RESOURCE_UNAVAILABLE SNMP_ERR_RESOURCEUNAVAILABLE 45 46 /* 47 * new value errors 48 */ 49 #define MFD_NOT_VALID_NOW SNMP_ERR_INCONSISTENTVALUE 50 #define MFD_NOT_VALID_EVER SNMP_ERR_WRONGVALUE 51 52 53 /*********************************************************************** 54 * 55 * rowreq flags 56 * 57 **********************************************************************/ 58 59 /*---------------------------------------------------------------------- 60 * 8 flags resevered for the user 61 */ 62 #define MFD_ROW_FLAG_USER_1 0x00000001 /* user flag 1 */ 63 #define MFD_ROW_FLAG_USER_2 0x00000002 /* user flag 2 */ 64 #define MFD_ROW_FLAG_USER_3 0x00000004 /* user flag 3 */ 65 #define MFD_ROW_FLAG_USER_4 0x00000008 /* user flag 4 */ 66 #define MFD_ROW_FLAG_USER_5 0x00000010 /* user flag 5 */ 67 #define MFD_ROW_FLAG_USER_6 0x00000020 /* user flag 6 */ 68 #define MFD_ROW_FLAG_USER_7 0x00000040 /* user flag 7 */ 69 #define MFD_ROW_FLAG_USER_8 0x00000080 /* user flag 8 */ 70 #define MFD_ROW_FLAG_USER_MASK 0x000000ff /* user flag mask */ 71 72 /*---------------------------------------------------------------------- 73 * MFD flags 74 * 75 * grow left to right, in case we want to add more user flags later 76 */ 77 #define MFD_ROW_MASK 0xffffff00 /* mask to clear user flags */ 78 #define MFD_ROW_CREATED 0x80000000 /* newly created row */ 79 #define MFD_ROW_DATA_FROM_USER 0x40000000 /* we didn't allocate data */ 80 #define MFD_ROW_DELETED 0x20000000 /* deleted row */ 81 #define MFD_ROW_DIRTY 0x10000000 /* changed row */ 82 83 84 #endif /* NETSNMP_MFD_H */ 85