versadac  1
versadac - Scalable Recorder Firmware
pnmib.h
1 #ifndef _PNMIB_H
2 #define _PNMIB_H
3 
4 
5 
6 #define PN_MRP_DOMAIN_UUID_LEN 16
7 
8 typedef struct _LLDP_LOCAL_PN_MIB{
9  APP_WORD wPNPortStatusRt2;
10  APP_WORD wPNPortStatusRt3;
11 
12 
13  APP_BYTE UUID_MRPDomain[PN_MRP_DOMAIN_UUID_LEN];
14  APP_WORD wMRRT_PortStatus;
15 
16  APP_BYTE sPNIOChassisMAC[MAC_ADDRESS_LEN];
17  APP_BYTE byPNTxEnabled;
19 
20 
21 typedef struct _LLDP_REMOTE_PN_MIB{
22  APP_WORD wRemPNPortStatusRt2;
23  APP_WORD wRemPNPortStatusRt3;
24  APP_BYTE UUID_RemMRPDomain[PN_MRP_DOMAIN_UUID_LEN];
25  APP_WORD wMRRT_RemPortStatus;
26  APP_BYTE sRemPNIOChassisMAC[MAC_ADDRESS_LEN];
28 
29 
30 /* PN Tx Enabled Masks */
31 #define LLDP_PNIO_DELAY_MASK 1 /* Not supported Yet */
32 #define LLDP_PNIO_PORT_STATUS_MASK 2
33 #define LLDP_PNIO_ALIAS_MASK 4 /* Not supported Yet */
34 #define LLDP_PNIO_MRPPORT_STATUS_MASK 8
35 #define LLDP_PNIO_PTCP_STATUS_MASK 16 /* Not supported Yet */
36 #define LLDP_PNIO_CHASSIS_MAC_MASK 32
37 
38 /* Case no PN */
39 #ifndef LLDP_SUPPORT_PN
40 #define LLDP_PNIO_SUPPORTED 0
41 #endif
42 
43 /* case pn with out anything */
44 #ifdef LLDP_SUPPORT_PN
45 
46 #ifndef LLDP_SUPPORT_MRP
47  #define LLDP_PNIO_SUPPORTED (LLDP_PNIO_PORT_STATUS_MASK|LLDP_PNIO_CHASSIS_MAC_MASK)
48 #endif
49 
50 /* case no pn with MRP */
51 #ifdef LLDP_SUPPORT_MRP
52  #define LLDP_PNIO_SUPPORTED (LLDP_PNIO_PORT_STATUS_MASK|LLDP_PNIO_CHASSIS_MAC_MASK|LLDP_PNIO_MRPPORT_STATUS_MASK)
53 #endif
54 #endif
55 
56 /* PORT STATUS RT2 */
57 #define LLDP_PNIO_PORT_STATUS_RT2_OFF 0
58 #define LLDP_PNIO_PORT_STATUS_RT2_CNF 1
59 #define LLDP_PNIO_PORT_STATUS_RT2_RUN 2
60 
61 
62 /* PORT STATUS RT3 */
63 #define LLDP_PNIO_PORT_STATUS_RT3_OFF 0
64 #define LLDP_PNIO_PORT_STATUS_RT3_CNF 1
65 #define LLDP_PNIO_PORT_STATUS_RT3_UP 2
66 #define LLDP_PNIO_PORT_STATUS_RT3_DOWN 3
67 #define LLDP_PNIO_PORT_STATUS_RT3_RUN 4
68 
69 
70 /* PORT STATUS MRRT */
71 #define LLDP_PNIO_PORT_STATUS_MRRT_OFF 0
72 #define LLDP_PNIO_PORT_STATUS_MRRT_CNF 1
73 #define LLDP_PNIO_PORT_STATUS_MRRT_UP 2
74 
75 
76 
77 APP_WORD InitialisePNLocalMIB(APP_LPWORD lpwStatus);
78 
79 #endif /* END OF HEADER FILE */
Definition: pnmib.h:21
Definition: pnmib.h:8