OpenNSL API Guide and Reference Manual
Welcome
OpenNSL Documentation
API Reference
Files
File List
Globals
include
opennsl
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
/***************************************************************************/
61
extern
int
opennsl_l3_egress_stat_detach
(
62
int
unit,
63
opennsl_if_t
intf_id)
LIB_DLL_EXPORTED
;
64
65
/***************************************************************************/
78
extern
int
opennsl_l3_ingress_stat_attach
(
79
int
unit,
80
opennsl_if_t
intf_id,
81
uint32
stat_counter_id)
LIB_DLL_EXPORTED
;
82
83
/***************************************************************************/
95
extern
int
opennsl_l3_ingress_stat_detach
(
96
int
unit,
97
opennsl_if_t
intf_id)
LIB_DLL_EXPORTED
;
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 {
103
opennslIntfIPOptionActionNone
= 0,
104
opennslIntfIPOptionActionCopyToCPU
= 1,
105
opennslIntfIPOptionActionDrop
= 2,
106
opennslIntfIPOptionActionCopyCPUAndDrop
= 3
107
}
opennsl_l3_ip4_options_action_t
;
108
/* __doxy_func_body_end__ */
109
110
/***************************************************************************/
126
extern
int
opennsl_l3_ip4_options_profile_create
(
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
/***************************************************************************/
143
extern
int
opennsl_l3_ip4_options_profile_destroy
(
144
int
unit,
145
int
ip4_options_profile_id)
LIB_DLL_EXPORTED
;
146
147
/***************************************************************************/
162
extern
int
opennsl_l3_ip4_options_action_set
(
163
int
unit,
164
int
ip4_options_profile_id,
165
int
ip4_option,
166
opennsl_l3_ip4_options_action_t
action)
LIB_DLL_EXPORTED
;
167
168
/***************************************************************************/
182
extern
int
opennsl_l3_ip4_options_action_get
(
183
int
unit,
184
int
ip4_options_profile_id,
185
int
ip4_option,
186
opennsl_l3_ip4_options_action_t
*action)
LIB_DLL_EXPORTED
;
187
188
#endif
/* defined(INCLUDE_L3) */
189
190
#endif
/* __OPENNSL_L3X_H__ */
191
© 2016-17 by Broadcom Limited. All rights reserved.