Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.4.4.5
openapi_ip_route_table.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_ip_route_table.h
28 *
29 * @purpose IP Route Table support
30 *
31 * @component OpEN
32 *
33 * @create 05/26/2016
34 *
35 * @end
36 *
37 *********************************************************************/
38 #ifndef OPENAPI_IP_ROUTE_TABLE_H_INCLUDED
39 #define OPENAPI_IP_ROUTE_TABLE_H_INCLUDED
40 
41 #include "openapi_common.h"
42 
43 #define OPEN_API_ROUTE_PREF_MIN 0
44 #define OPEN_API_ROUTE_PREF_MAX 255
45 #define OPEN_API_ROUTE_NEXT_HOP_INTF_BUF_MIN ((16 * 60) + 1)
46 #define OPEN_API_ROUTE_NEXT_HOP_ADDR_BUF_MIN ((16 * 20) + 1)
48 typedef enum
49 {
67  OPEN_RTO_RIP = 17,
77 
78 typedef enum
79 {
99 
100 
101 /*****************************************************************/
125  uint32_t *routeDest,
126  uint32_t *routeMask,
127  OPEN_RTO_PROTOCOL_INDICES_t *routeProto,
128  uint32_t *routePref);
129 
130 /*****************************************************************/
151  uint32_t *routeDest,
152  uint32_t *routeMask,
153  OPEN_RTO_PROTOCOL_INDICES_t *routeProto,
154  uint32_t *routePref,
155  uint32_t *metric);
156 
157 /*****************************************************************/
179  uint32_t *routeDest,
180  uint32_t *routeMask,
181  OPEN_RTO_PROTOCOL_INDICES_t *routeProto,
182  uint32_t *routePref,
183  uint32_t *routeAge);
184 
185 /*****************************************************************/
206  uint32_t *routeDest,
207  uint32_t *routeMask,
208  OPEN_RTO_PROTOCOL_INDICES_t *routeProto,
209  uint32_t *routePref,
210  OPEN_BOOL_t *hwFailure);
211 
212 /*****************************************************************/
236  uint32_t *routeDest,
237  uint32_t *routeMask,
238  OPEN_RTO_PROTOCOL_INDICES_t *routeProto,
239  uint32_t *routePref,
240  open_buffdesc *nextHopIntf);
241 
242 /*****************************************************************/
266  uint32_t *routeDest,
267  uint32_t *routeMask,
268  OPEN_RTO_PROTOCOL_INDICES_t *routeProto,
269  uint32_t *routePref,
270  open_buffdesc *nextHopAddr);
271 #endif /* OPENAPI_IP_ROUTE_TABLE_H_INCLUDED */
272