Data Structures | |
struct | msp_fdb_rt_query_s |
msp_fdb_rt_query_s More... | |
struct | msp_fdb_rt_info_s |
msp_fdb_rt_info_t More... | |
struct | msp_fdb_snmp_info_s |
msp_fdb_snmp_info_t More... | |
struct | msp_fdb_vrf_info_s |
msp_fdb_vrf_info_t More... | |
struct | msp_fdb_ifl_info_s |
msp_fdb_ifl_info_s More... | |
struct | msp_fdb_as_info_s |
msp_fdb_as_info_s More... | |
struct | msp_fdb_stats_s |
msp_fdb_stats_s More... | |
struct | msp_fdb_cfg_info_s |
msp_fdb_cfg_info_t More... | |
Defines | |
#define | MSP_FDB_MAX_VRF_INDEX 65535 |
VRF index can vary from 0 to 65534. | |
#define | MSP_FDB_MAX_SNMP_INDEX 65535 |
SNMP index can vary from 0 to 65534. | |
#define | MSP_FDB_MAX_IFL_INDEX 65535 |
Logical interface index can vary from 0 to 65534. | |
#define | MSP_FDB_MAX_DEST_ADDR_LEN 16 |
Destination addresses of type IPv4 to IPv6. | |
#define | MSP_FDB_RT_QUERY_KEY_IIF 0x0 |
Route query using logical input interface on which packet was received. | |
#define | MSP_FDB_RT_QUERY_KEY_RT_INDEX 0x01 |
Route query where route table identifier is given. | |
Typedefs | |
typedef void * | msp_fdb_handle_t |
msp_fdb_handle_t | |
typedef void * | msp_fdb_attach_opt_t |
msp_fdb_attach_opt_t | |
typedef msp_fdb_rt_query_s | msp_fdb_rt_query_t |
msp_fdb_rt_query_s | |
typedef msp_fdb_rt_info_s | msp_fdb_rt_info_t |
msp_fdb_rt_info_t | |
typedef msp_fdb_snmp_info_s | msp_fdb_snmp_info_t |
msp_fdb_snmp_info_t | |
typedef msp_fdb_vrf_info_s | msp_fdb_vrf_info_t |
msp_fdb_vrf_info_t | |
typedef msp_fdb_ifl_info_s | msp_fdb_ifl_info_t |
msp_fdb_ifl_info_s | |
typedef msp_fdb_as_info_s | msp_fdb_as_info_t |
msp_fdb_as_info_s | |
typedef msp_fdb_stats_s | msp_fdb_stats_t |
msp_fdb_stats_s | |
typedef msp_fdb_cfg_info_s | msp_fdb_cfg_info_t |
msp_fdb_cfg_info_t | |
typedef msp_fdb_iter_res_t(* | msp_fdb_route_handler_t )(msp_fdb_rt_info_t *route, void *ctxt) |
Type definition for a user function to invoke while iterating through all route records of a particular protocol in a VRF. | |
typedef msp_fdb_iter_res_t(* | msp_fdb_as_rec_handler_t )(msp_fdb_as_info_t *as_info, void *ctxt) |
Type definition for user function to invoke while iterating through all autonomous system (AS) records in the forwarding database. | |
typedef msp_fdb_iter_res_t(* | msp_fdb_ifl_handler_t )(msp_fdb_ifl_info_t *p_ifl, void *ctxt) |
Type definition for a user function to invoke while iterating through all logical interface records in the forwarding database. | |
typedef msp_fdb_iter_res_t(* | msp_fdb_vrf_handler_t )(msp_fdb_vrf_info_t *vrf, void *ctxt) |
Type definition for a user function to invoke while iterating through all VRF records in the forwarding database. | |
typedef msp_fdb_iter_res_t(* | msp_fdb_snmp_handler_t )(msp_fdb_snmp_info_t *snmp, void *ctxt) |
Type definition for a user function to invoke while iterating through all SNMP records in the forwarding database. | |
Enumerations | |
enum | msp_fdb_iter_res_t { msp_fdb_iter_continue = 0, msp_fdb_iter_stop, msp_fdb_iter_error } |
msp_fdb_iter_res_t Return values of iterator functions. More... | |
Functions | |
int | msp_fdb_get_stats (msp_fdb_handle_t fdb_handle, msp_fdb_stats_t *fdb_stats) |
Return size of forwarding database statistics. | |
int | msp_fdb_attach (void *opt, msp_fdb_handle_t *fdb_handle) |
Attaches an application to the forwarding database. | |
int | msp_fdb_detach (msp_fdb_handle_t fdb_handle) |
Destroys Application-specific forwarding database context. | |
int | msp_fdb_get_route_record (msp_fdb_handle_t fdb_handle, msp_fdb_rt_query_t *rt_query, msp_fdb_rt_info_t *rt_res) |
Performs a route lookup for a specific destination address. | |
int | msp_fdb_get_snmp_index (msp_fdb_handle_t fdb_handle, u_int32_t ifl_index, u_int32_t *snmp_index) |
Gets the SNMP index for a given logical interface. | |
int | msp_fdb_get_aspath (msp_fdb_handle_t fdb_handle, u_int32_t as_index, msp_fdb_as_info_t *as_info) |
Gets autonomous system (AS) path detail for a given AS index. | |
int | msp_fdb_get_ifl_index (msp_fdb_handle_t fdb_handle, u_int32_t snmp_index, u_int32_t *ifl_index) |
Gets the logical interface index for a given SNMP index. | |
int | msp_fdb_get_vrf_index (msp_fdb_handle_t fdb_handle, u_int32_t ifl_index, u_int32_t *rtt_index) |
Gets the route table index for a given logical interface index. | |
int | msp_fdb_get_all_route_records_in_vrf (msp_fdb_handle_t fdb_handle, u_int32_t rtt_idx, u_int8_t proto_family, msp_fdb_route_handler_t user_func, void *ctxt) |
Iterator to get all route records of a VRF. | |
int | msp_fdb_get_all_route_records (msp_fdb_handle_t fdb_handle, u_int8_t proto_family, msp_fdb_route_handler_t user_func, void *ctxt) |
Iterator to get all route records across all route tables available in the forwarding database. | |
int | msp_fdb_get_all_as_records (msp_fdb_handle_t fdb_handle, msp_fdb_as_rec_handler_t user_func, void *ctxt) |
Iterator to get all AS records available in the forwarding database. | |
int | msp_fdb_get_all_ifl_records (msp_fdb_handle_t fdb_handle, msp_fdb_ifl_handler_t user_func, void *ctxt) |
Iterator to get all IFL records available in the forwarding database. | |
int | msp_fdb_get_all_vrf_records (msp_fdb_handle_t fdb_handle, msp_fdb_vrf_handler_t user_func, void *ctxt) |
Iterator to get all VRF records available in the forwarding database. | |
int | msp_fdb_get_all_snmp_records (msp_fdb_handle_t fdb_handle, msp_fdb_snmp_handler_t user_func, void *ctxt) |
Iterator to get all SNMP records available in the forwarding database. | |
int | msp_fdb_is_configured (void) |
Indicates whether or not the forwarding database has been configured. | |
int | msp_fdb_get_configuration (msp_fdb_cfg_info_t *fdb_cfg_info) |
Returns configuration-related information, such as the size of the forwarding database. |
This file provide APIs to access the forwarding database (fdb) that is exported by the JUNOS Routing Engine. The forwarding database typically includes information related to route entries, the associated outgoing interfaces, autonomous system information, and other miscellaneous information that is added to the database over time.
These APIs provide read-only access to the forwarding database.
${LIBJUNIPER}
before ${LIBMSP-SVCS}
in the DPLIBS
list.
|
Information related to an autonomous system (AS) record. |
|
Type definition for user function to invoke while iterating through all autonomous system (AS) records in the forwarding database.
|
|
msp_fdb_attach_opt_t
This is a placeholder for options that might be passed to |
|
msp_fdb_cfg_info_t Structure to return the forwarding database configuration detail. |
|
msp_fdb_handle_t Opaque handle to the forwarding database. Most of the forwarding database APIs require this handle to maintain database-specific contexts. |
|
Type definition for a user function to invoke while iterating through all logical interface records in the forwarding database.
|
|
Information related to an IFL record. |
|
Type definition for a user function to invoke while iterating through all route records of a particular protocol in a VRF.
|
|
msp_fdb_rt_info_t Result of a route query. |
|
Input parameters for route query. |
|
Type definition for a user function to invoke while iterating through all SNMP records in the forwarding database.
|
|
msp_fdb_snmp_info_t Information related to an SNMP record. |
|
Various statistics related to the forwarding database. |
|
Type definition for a user function to invoke while iterating through all VRF records in the forwarding database.
|
|
msp_fdb_vrf_info_t Summarized information related to a route table. |
|
msp_fdb_iter_res_t Return values of iterator functions.
|
|
Attaches an application to the forwarding database. This function creates the application-specific context of the forwarding database. It also maps shared memory where the forwarding database resides in process address space.
|
|
Destroys Application-specific forwarding database context.
|
|
Iterator to get all AS records available in the forwarding database.
|
|
Iterator to get all IFL records available in the forwarding database.
|
|
Iterator to get all route records across all route tables available in the forwarding database.
|
|
Iterator to get all route records of a VRF.
|
|
Iterator to get all SNMP records available in the forwarding database.
|
|
Iterator to get all VRF records available in the forwarding database.
|
|
Gets autonomous system (AS) path detail for a given AS index.
|
|
Returns configuration-related information, such as the size of the forwarding database.
|
|
Gets the logical interface index for a given SNMP index.
|
|
Performs a route lookup for a specific destination address.
|
|
Gets the SNMP index for a given logical interface.
|
|
Return size of forwarding database statistics.
|
|
Gets the route table index for a given logical interface index.
|
|
Indicates whether or not the forwarding database has been configured.
|