# BRCM_VERSION=3
[bcm963xx.git] / userapps / opensource / net-snmp / agent / m2m.h
1 /*
2  * m2m.h
3  */
4
5 struct get_req_state {
6     int             type;
7     void           *info;
8 };
9
10 /*
11  * values for type field in get_req_state 
12  */
13 #define ALARM_GET_REQ   1
14 #define EVENT_GET_REQ   2
15
16 /*
17  * the following define is used to document a routine or variable which
18  * ** is not static to a module.
19  */
20 #define Export
21
22 /*
23  * values for EntryStatus 
24  */
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
31
32 /*
33  * maximum length for an OwnerString variable 
34  */
35 #define MAX_OWNER_STR_LEN 128
36
37 /*
38  * maximum length for a description field 
39  */
40 #define MAX_DESCRIPTION_LEN 128
41
42 /*
43  * defines for noting whether the incoming packet is unicast, broadcast,
44  * ** or multicast
45  */
46 #define PKT_UNICAST 0
47 #define PKT_BROADCAST 1
48 #define PKT_MULTICAST 2
49
50 /*
51  * macro to compare two ethernet addresses.  addr1 is a pointer to a
52  * ** struct ether_addr; addr2 is just a struct ether_addr.
53  */
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)))))