OpenNSL API Guide and Reference Manual
l3X.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_L3X_H__
17 #define __OPENNSL_L3X_H__
18 
19 #if defined(INCLUDE_L3)
20 
21 #include <opennsl/types.h>
22 #include <opennsl/stat.h>
23 #include <opennsl/mpls.h>
24 
25 #define OPENNSL_L3_ECMP_DYNAMIC_MODE_NORMAL 1
31 /***************************************************************************/
44 extern int opennsl_l3_egress_stat_attach(
45  int unit,
46  opennsl_if_t intf_id,
47  uint32 stat_counter_id) LIB_DLL_EXPORTED ;
48 
49 /***************************************************************************/
62  int unit,
64 
65 /***************************************************************************/
79  int unit,
80  opennsl_if_t intf_id,
81  uint32 stat_counter_id) LIB_DLL_EXPORTED ;
82 
83 /***************************************************************************/
96  int unit,
98 
99 #define OPENNSL_L3_IP4_OPTIONS_WITH_ID 0x00000001
100 #define OPENNSL_L3_IP4_OPTIONS_REPLACE 0x00000002
102 typedef enum opennsl_l3_ip4_options_action_e {
108 /* __doxy_func_body_end__ */
109 
110 /***************************************************************************/
127  int unit,
128  uint32 flags,
129  opennsl_l3_ip4_options_action_t default_action,
130  int *ip4_options_profile_id) LIB_DLL_EXPORTED ;
131 
132 /***************************************************************************/
144  int unit,
145  int ip4_options_profile_id) LIB_DLL_EXPORTED ;
146 
147 /***************************************************************************/
163  int unit,
164  int ip4_options_profile_id,
165  int ip4_option,
167 
168 /***************************************************************************/
183  int unit,
184  int ip4_options_profile_id,
185  int ip4_option,
187 
188 #endif /* defined(INCLUDE_L3) */
189 
190 #endif /* __OPENNSL_L3X_H__ */
191