net-snmp 5.7
|
00001 /* 00002 * m2m.h 00003 */ 00004 00005 struct get_req_state { 00006 int type; 00007 void *info; 00008 }; 00009 00010 /* 00011 * values for type field in get_req_state 00012 */ 00013 #define ALARM_GET_REQ 1 00014 #define EVENT_GET_REQ 2 00015 00016 /* 00017 * the following define is used to document a routine or variable which 00018 * ** is not static to a module. 00019 */ 00020 #define Export 00021 00022 /* 00023 * values for EntryStatus 00024 */ 00025 #define ENTRY_ACTIVE 1 00026 #define ENTRY_NOTINSERVICE 2 00027 #define ENTRY_NOTREADY 3 00028 #define ENTRY_CREATEANDGO 4 00029 #define ENTRY_CREATEANDWAIT 5 00030 #define ENTRY_DESTROY 6 00031 00032 /* 00033 * maximum length for an OwnerString variable 00034 */ 00035 #define MAX_OWNER_STR_LEN 128 00036 00037 /* 00038 * maximum length for a description field 00039 */ 00040 #define MAX_DESCRIPTION_LEN 128 00041 00042 /* 00043 * defines for noting whether the incoming packet is unicast, broadcast, 00044 * ** or multicast 00045 */ 00046 #define PKT_UNICAST 0 00047 #define PKT_BROADCAST 1 00048 #define PKT_MULTICAST 2 00049 00050 /* 00051 * macro to compare two ethernet addresses. addr1 is a pointer to a 00052 * ** struct ether_addr; addr2 is just a struct ether_addr. 00053 */ 00054 #define sameEtherAddr(addr1, addr2) \ 00055 ((*((short *)((addr1)->ether_addr_octet)) == \ 00056 *((short *)((addr2).ether_addr_octet))) &&\ 00057 (*((short *)(((addr1)->ether_addr_octet) + 2)) == \ 00058 *((short *)((((addr2).ether_addr_octet) + 2)))) &&\ 00059 (*((short *)(((addr1)->ether_addr_octet) + 4)) == \ 00060 *((short *)((((addr2).ether_addr_octet) + 4)))))