11 * values for type field in get_req_state
13 #define ALARM_GET_REQ 1
14 #define EVENT_GET_REQ 2
17 * the following define is used to document a routine or variable which
18 * ** is not static to a module.
23 * values for EntryStatus
25 #define ENTRY_ACTIVE 1
26 #define ENTRY_NOTINSERVICE 2
27 #define ENTRY_NOTREADY 3
28 #define ENTRY_CREATEANDGO 4
29 #define ENTRY_CREATEANDWAIT 5
30 #define ENTRY_DESTROY 6
33 * maximum length for an OwnerString variable
35 #define MAX_OWNER_STR_LEN 128
38 * maximum length for a description field
40 #define MAX_DESCRIPTION_LEN 128
43 * defines for noting whether the incoming packet is unicast, broadcast,
47 #define PKT_BROADCAST 1
48 #define PKT_MULTICAST 2
51 * macro to compare two ethernet addresses. addr1 is a pointer to a
52 * ** struct ether_addr; addr2 is just a struct ether_addr.
54 #define sameEtherAddr(addr1, addr2) \
55 ((*((short *)((addr1)->ether_addr_octet)) == \
56 *((short *)((addr2).ether_addr_octet))) &&\
57 (*((short *)(((addr1)->ether_addr_octet) + 2)) == \
58 *((short *)((((addr2).ether_addr_octet) + 2)))) &&\
59 (*((short *)(((addr1)->ether_addr_octet) + 4)) == \
60 *((short *)((((addr2).ether_addr_octet) + 4)))))