l3_int.h (1178B)
1 /*! \file l3_int.h 2 * 3 * L3 internal header file. 4 * This file contains L3 definitions internal to the L3 module 5 * itself. 6 */ 7 /* 8 * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. 9 * 10 * Copyright 2007-2020 Broadcom Inc. All rights reserved. 11 */ 12 13 14 #ifndef BCMI_LTSW_L3_INT_H 15 #define BCMI_LTSW_L3_INT_H 16 17 /* HA Sub component id for L3 option info. */ 18 #define BCMINT_LTSW_L3_HA_IP_OPTION_FBMP 0 19 #define BCMINT_LTSW_L3_HA_IP_OPTION_HW 1 20 21 #define MAX_FIELD_CNT 3 22 23 typedef struct bcmint_ltsw_l3_switch_control_tbl_s { 24 const char *ltname; 25 int field_count; 26 const char *field_str[MAX_FIELD_CNT]; 27 bool field_symbol; 28 } bcmint_ltsw_l3_switch_control_tbl_t; 29 30 /*! 31 * \brief Get L3 switch control logical table info. 32 * 33 * \param [in] unit Unit Number. 34 * \param [out] tbl_info Pointer to table description info. 35 * 36 * \retval SHR_E_UNAVAIL Logical table is not supported. 37 * \retval SHR_E_NONE No error. 38 */ 39 extern int 40 bcmint_ltsw_l3_switch_control_tbl_get( 41 int unit, 42 const bcmint_ltsw_l3_switch_control_tbl_t **tbl_info); 43 44 #endif /* BCMI_LTSW_L3_INT_H */ 45