Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.4.4.5
openapi_dot1s.h
Go to the documentation of this file.
1 
9 /*********************************************************************
10 *
11 * Copyright 2016-2018 Broadcom.
12 *
13 * Licensed under the Apache License, Version 2.0 (the "License");
14 * you may not use this file except in compliance with the License.
15 * You may obtain a copy of the License at
16 *
17 * http://www.apache.org/licenses/LICENSE-2.0
18 *
19 * Unless required by applicable law or agreed to in writing, software
20 * distributed under the License is distributed on an "AS IS" BASIS,
21 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 * See the License for the specific language governing permissions and
23 * limitations under the License.
24 *
25 **********************************************************************
26 *
27 * @filename openapi_dot1s.h
28 *
29 * @purpose Spanning Tree Configuration and Status
30 *
31 * @component OPEN
32 *
33 * @create 10/25/2012
34 *
35 * @end
36 *
37 **********************************************************************/
38 #ifndef OPENAPI_DOT1S_H_INCLUDED
39 #define OPENAPI_DOT1S_H_INCLUDED
40 
41 #include "openapi_common.h"
42 
43 typedef enum
44 {
51 
52 typedef enum
53 {
58 
59 typedef enum
60 {
63 
64 typedef enum
65 {
73 
74 typedef enum
75 {
84 
85 #define OPENAPI_DOT1S_CST_ID 0
86 #define OPENAPI_DOT1S_MSTID_MAX 4094
87 
88 #define OPEN_DOT1S_VLAN_ID_LEN 2
89 #define OPEN_DOT1S_MAC_ID_LEN OPEN_MAC_ADDR_LEN
90 #define OPEN_DOT1S_VID_MAC_ADDR_LEN (OPEN_DOT1S_VLAN_ID_LEN + OPEN_DOT1S_MAC_ID_LEN)
91 
96 typedef struct
97 {
98  uint8_t octets[OPEN_DOT1S_VID_MAC_ADDR_LEN];
100 
101 
102 /*****************************************************************/
119  OPEN_DOT1S_MGMT_STR_t strType,
120  uint32_t *strLen);
121 
122 /*****************************************************************/
136  uint32_t *vlanMax);
137 
138 /*****************************************************************/
155  OPEN_CONTROL_t dot1sMode);
156 
157 /*****************************************************************/
173  OPEN_CONTROL_t *dot1sMode);
174 
175 /*****************************************************************/
193  uint32_t ifNum,
194  OPEN_CONTROL_t dot1sBPDUFilterMode);
195 
196 /*****************************************************************/
213  uint32_t ifNum,
214  OPEN_CONTROL_t *dot1sBPDUFilterMode);
215 
216 /*****************************************************************/
234  uint32_t ifNum,
235  OPEN_CONTROL_t dot1sBPDUFloodMode);
236 
237 /*****************************************************************/
254  uint32_t ifNum,
255  OPEN_CONTROL_t *dot1sBPDUFloodMode);
256 
257 /*****************************************************************/
273  OPEN_CONTROL_t dot1sBPDUGuard);
274 
275 /*****************************************************************/
290  OPEN_CONTROL_t *dot1sBPDUGuard);
291 
292 /*****************************************************************/
308  OPEN_CONTROL_t dot1sBPDUFilter);
309 
310 /*****************************************************************/
325  OPEN_CONTROL_t *dot1sBPDUFilter);
326 
327 /*****************************************************************/
346  open_buffdesc *dot1sConfigName);
347 
348 /*****************************************************************/
365  open_buffdesc *dot1sConfigName);
366 
367 /*****************************************************************/
385  uint32_t dot1sConfigRev);
386 
387 /*****************************************************************/
402  uint32_t *dot1sConfigRev);
403 
404 /*****************************************************************/
420  OPEN_DOT1S_FORCE_VERSION_t dot1sForceVersion);
421 
422 /*****************************************************************/
437  OPEN_DOT1S_FORCE_VERSION_t *dot1sForceVersion);
438 
439 /*****************************************************************/
455 open_error_t openapiDot1SIntfGuardModeSet(openapiClientHandle_t *client_handle, uint32_t ifNum,
456  OPEN_DOT1S_PORT_GUARD_t dot1sGuardMode);
457 
458 /*****************************************************************/
475  uint32_t ifNum,
476  OPEN_DOT1S_PORT_GUARD_t *dot1sGuardMode);
477 
478 /*****************************************************************/
497  uint32_t dot1sMSTInstanceId,
498  OPEN_ACTION_t action);
499 
500 /*****************************************************************/
515  uint32_t *instanceId);
516 
517 /*****************************************************************/
533  uint32_t currInstance,
534  uint32_t *nextInstance);
535 
536 /*****************************************************************/
557  uint32_t dot1sMSTInstance,
558  uint32_t priority);
559 
560 /*****************************************************************/
576  uint32_t dot1sMSTInstance,
577  uint16_t *priority);
578 
579 /*****************************************************************/
601  uint32_t dot1sMSTInstance,
602  uint32_t vlan,
603  OPEN_ACTION_t action);
604 /*****************************************************************/
620  uint32_t dot1sInstance,
621  uint32_t *VLANId);
622 
623 /*****************************************************************/
640  uint32_t dot1sInstance,
641  uint32_t currVLANId, uint32_t *nextVLANId);
642 
643 /*****************************************************************/
659  uint32_t dot1sInstance,
660  uint32_t *FId);
661 
662 /*****************************************************************/
679  uint32_t dot1sInstance,
680  uint32_t currFId, uint32_t *nextFId);
681 
682 /*************************************************************************/
702  uint32_t dot1sMSTInstance,
704 
705 /*************************************************************************/
725  uint32_t dot1sMSTInstance,
726  uint32_t *timeVal);
727 
728 /*************************************************************************/
748  uint32_t mstId,
749  uint32_t *count);
750 
751 /*************************************************************************/
772  uint32_t dot1sMSTInstance,
773  OPEN_BOOL_t *change);
774 
775 /*************************************************************************/
795  uint32_t dot1sMSTInstance,
796  OPEN_DOT1S_BRIDGEID_t *rootId);
797 
798 /*************************************************************************/
818  uint32_t dot1sMSTInstance,
819  uint32_t *cost);
820 
821 /*************************************************************************/
841  uint32_t dot1sMSTInstance,
842  uint32_t *port);
843 
844 /*************************************************************************/
859  uint32_t *age);
860 
861 /*************************************************************************/
876  uint32_t *count);
877 
878 /*************************************************************************/
893  uint32_t *count);
894 
895 /*************************************************************************/
910  uint32_t *delay);
911 
912 /*************************************************************************/
928  uint32_t ifNum,
929  uint32_t *helloTime);
930 
931 /*************************************************************************/
946  uint32_t *holdTime);
947 
948 /*************************************************************************/
963  OPEN_DOT1S_BRIDGEID_t *rootId);
964 
965 /*************************************************************************/
980  uint32_t *cost);
981 
982 /*****************************************************************/
999  uint32_t ifNum,
1000  OPEN_CONTROL_t dot1sMode);
1001 
1002 /*****************************************************************/
1018  uint32_t ifNum,
1019  OPEN_CONTROL_t *dot1sMode);
1020 
1021 /*****************************************************************/
1038  uint32_t ifNum,
1039  uint32_t dot1sInstance,
1040  OPEN_DOT1S_PORT_FWD_STATE_t *dot1sPortFwdState);
1041 
1042 /*****************************************************************/
1059  uint32_t ifNum,
1060  uint32_t dot1sInstance,
1061  OPEN_DOT1S_PORT_ROLE_t *dot1sPortRole);
1062 
1063 /*****************************************************************/
1081  uint32_t ifNum,
1082  uint32_t dot1sInstance,
1083  OPEN_BOOL_t *loopInconsistentState);
1084 
1085 /*****************************************************************/
1102  uint32_t ifNum,
1103  OPEN_CONTROL_t dot1sEdgePortMode);
1104 
1105 /*****************************************************************/
1123  uint32_t ifNum,
1124  uint32_t *dot1sEdgePortMode);
1125 
1126 #endif /* OPENAPI_DOT1S_H_INCLUDED */
1127