OpenNSL API Guide and Reference Manual
tunnelX.h
Go to the documentation of this file.
1 
4 /*****************************************************************************
5  *
6  * This software is governed by the Broadcom Advanced Switch APIs license.
7  * This license is set out in the
8  * https://github.com/Broadcom-Switch/OpenNSL/Legal/LICENSE-Adv file.
9  *
10  * Copyright 2015-2016 Broadcom Corporation. All rights reserved.
11  *
12  ***************************************************************************/
16 #ifndef __OPENNSL_TUNNELX_H__
17 #define __OPENNSL_TUNNELX_H__
18 
19 #if defined(INCLUDE_L3)
20 
21 #include <opennsl/types.h>
22 #include <opennsl/l3.h>
23 
24 #define OPENNSL_TUNNEL_TERM_TUNNEL_WITH_ID 0x00000040
25 #define OPENNSL_TUNNEL_INIT_USE_INNER_DF 0x00000080
29 #define OPENNSL_TUNNEL_REPLACE 0x00010000
31 #define OPENNSL_TUNNEL_WITH_ID 0x00080000
34 typedef enum opennsl_tunnel_type_e {
37 /* __doxy_func_body_end__ */
38 
60  int reserved1;
66  int reserved6;
67  int qos_map_id;
69  int reserved7;
71 /* __doxy_func_body_end__ */
72 
81 /* __doxy_func_body_end__ */
82 
87  int ttl;
95  int dscp;
96  int dscp_map;
101  int mtu;
113 /* __doxy_func_body_end__ */
114 
116  int unit,
118  void *user_data);
119 
121  int unit,
123  void *user_data);
124 
125 /***************************************************************************/
140  int unit,
141  opennsl_l3_intf_t *intf,
143 
144 /***************************************************************************/
159  int unit,
160  opennsl_l3_intf_t *intf,
162 
163 /***************************************************************************/
175  int unit,
177 
178 /***************************************************************************/
192  int unit,
193  opennsl_l3_intf_t *intf,
195 
196 /***************************************************************************/
210  int unit,
212  void *user_data) LIB_DLL_EXPORTED ;
213 
214 /***************************************************************************/
232  int unit,
234 
235 /***************************************************************************/
253  int unit,
255 
256 /***************************************************************************/
270  int unit,
272 
273 /***************************************************************************/
287  int unit,
289 
290 /***************************************************************************/
304  int unit,
306 
307 /***************************************************************************/
321  int unit,
323  void *user_data) LIB_DLL_EXPORTED ;
324 
325 /***************************************************************************/
342 
343 /***************************************************************************/
360 
361 #endif /* defined(INCLUDE_L3) */
362 
363 #endif /* __OPENNSL_TUNNELX_H__ */
364