versadac  1
versadac - Scalable Recorder Firmware
lldpmsg.h
1 /*---------------------------------------------------------------------------*/
2 /* Copyright (C) 2006 Woodhead Software & Electonics. All rights reserved. */
3 /*---------------------------------------------------------------------------*/
4 /* This program is protected by international copyright. */
5 /* */
6 /* The use of this software including but not limited to its Source Code */
7 /* is subject to restrictions as agreed in the license agreement between */
8 /* you and Woodhead. */
9 /* Copying or distribution is not allowed unless expressly permitted */
10 /* according to your license agreement with Woodhead. */
11 /*---------------------------------------------------------------------------*/
12 /* */
13 /* Project : STACK PROFINET Controller */
14 /* Component : LLDP */
15 /* $Workfile:: lldpmsg.h $*/
16 /* $Revision:: 1 $*/
17 /* $Date:: 9/07/09 4:45p $*/
18 /* */
19 /*---------------------------------------------------------------------------*/
20 /* */
21 /* D e s c r i p t i o n : */
22 /* - LLDP Message header */
23 /*---------------------------------------------------------------------------*/
24 
25 #ifndef _LLDP_MSG_H
26 #define _LLDP_MSG_H
27 
28 
29 typedef struct _ST_LLDP_CONFIGTIME {
30  APP_LPVOID lpContext;
31  APP_WORD wMsgTxHold;
32  APP_WORD wMsgTxInterval;
33  APP_WORD wMsgTxReInitDelay;
34  APP_WORD wMsgTxDelay;
36 
37 typedef struct _ST_LLDP_PORTCONFIG {
38 
39  APP_LPVOID lpContext;
40  APP_BYTE byPortNumber;
41  APP_BYTE byLLDPAdminStatus;
42  APP_BYTE byLLDPTLVEnabled;
43  APP_BYTE byPortSubType;
44  APP_BOOL bLLDPPortEnabled;
45  APP_BYTE sPortID[256];
46 
48 
49 typedef struct _ST_LLDP_SYSTEMCONFIG {
50 
51  APP_LPVOID lpContext;
52  APP_BYTE byChassisIDSubType;
53  APP_BYTE sChassisID[256];
55 
56 
57 
58 typedef struct _ST_LLDP_DESCRIPTION {
59  APP_LPVOID lpContext;
60  APP_BYTE byPortIndex;
61  APP_BYTE sPortDesc[256];
62  APP_BYTE sSysDesc[256];
63  APP_BYTE sSysName[256];
64  APP_WORD wSysCap;
65  APP_WORD wSysCapEnabled;
66 
68 
69 typedef struct _ST_LLDP_PN_PORTSTATUS {
70 
71  APP_LPVOID lpContext;
72  APP_WORD wPNPortStatusRt2;
73  APP_WORD wPNPortStatusRt3;
74  APP_BYTE byPortIndex;
76 
77 typedef struct _ST_LLDP_PN_CHASSISMAC {
78 
79  APP_LPVOID lpContext;
80  APP_BYTE byChassisMac[6];
81  APP_BYTE byPortIndex;
83 
84 typedef struct _ST_LLDP_PN_MRP {
85  APP_LPVOID lpContext;
86  APP_BYTE sUUIDMRPDomain[PN_MRP_DOMAIN_UUID_LEN];
87  APP_WORD wMRRTPortStatus;
88  APP_BYTE byPortIndex;
90 
91 
92 typedef struct _ST_LLDP_MSG_8023_AUTONEG {
93 
94  APP_LPVOID lpContext;
95  APP_WORD wOperationMauType;
96  APP_WORD w8023AutoNegAdvCapability;
97  APP_BOOL bAutoNegSupported;
98  APP_BOOL bAutoNegEnabled;
99  APP_BYTE byPortIndex;
101 
102 
103 
104 typedef struct _ST_LLDP_MSG_PN_ADDR_MGT {
105  APP_LPVOID lpContext;
106  APP_BYTE byMgtAddrSubType;
107  APP_DWORD dwMgtAddr;
108  APP_BYTE byMgtAddrItfSubType;
109  APP_DWORD dwMgtAddrItfNumber;
110  APP_BYTE byMgtAddrOidLength;
111  APP_BYTE sMgtAddrOid[LLDP_OID_LENGTH];
112 
114 
115 #endif /* END OF HEADER FILE */
Definition: lldpmsg.h:58
Definition: lldpmsg.h:37
Definition: lldpmsg.h:84
Definition: lldpmsg.h:69
Definition: lldpmsg.h:29
Definition: lldpmsg.h:104
Definition: lldpmsg.h:92
Definition: lldpmsg.h:77
Definition: lldpmsg.h:49