| rte_rib.h(3) | Library Functions Manual | rte_rib.h(3) |
rte_rib.h
#include <stdlib.h>
#include <stdint.h>
struct rte_rib_conf
enum { RTE_RIB_GET_NXT_ALL, RTE_RIB_GET_NXT_COVER }
static uint32_t rte_rib_depth_to_mask (uint8_t depth)
struct rte_rib_node * rte_rib_lookup (struct rte_rib *rib, uint32_t ip)
struct rte_rib_node * rte_rib_lookup_parent (struct rte_rib_node *ent)
struct rte_rib_node * rte_rib_lookup_exact (struct rte_rib *rib,
uint32_t ip, uint8_t depth)
struct rte_rib_node * rte_rib_get_nxt (struct rte_rib *rib, uint32_t
ip, uint8_t depth, struct rte_rib_node *last, int flag)
void rte_rib_remove (struct rte_rib *rib, uint32_t ip, uint8_t depth)
struct rte_rib_node * rte_rib_insert (struct rte_rib *rib, uint32_t ip,
uint8_t depth)
int rte_rib_get_ip (const struct rte_rib_node *node, uint32_t *ip)
int rte_rib_get_depth (const struct rte_rib_node *node, uint8_t *depth)
void * rte_rib_get_ext (struct rte_rib_node *node)
int rte_rib_get_nh (const struct rte_rib_node *node, uint64_t *nh)
int rte_rib_set_nh (struct rte_rib_node *node, uint64_t nh)
struct rte_rib * rte_rib_create (const char *name, int socket_id, const
struct rte_rib_conf *conf)
struct rte_rib * rte_rib_find_existing (const char *name)
void rte_rib_free (struct rte_rib *rib)
RTE RIB library.
Level compressed tree implementation for IPv4 Longest Prefix Match
Definition in file rte_rib.h.
rte_rib_get_nxt() flags
Enumerator
Definition at line 28 of file rte_rib.h.
Get an IPv4 mask from prefix length It is caller responsibility to make sure depth is not bigger than 32
Parameters
Returns
Definition at line 60 of file rte_rib.h.
Lookup an IP into the RIB structure
Parameters
Returns
Lookup less specific route into the RIB structure
Parameters
Returns
Lookup prefix into the RIB structure
Parameters
Returns
Retrieve next more specific prefix from the RIB that is covered by ip/depth supernet in an ascending order
Parameters
Returns
Remove prefix from the RIB
Parameters
Insert prefix into the RIB
Parameters
Returns
Get an ip from rte_rib_node
Parameters
Returns
Get a depth from rte_rib_node
Parameters
Returns
Get ext field from the rib node It is caller responsibility to make sure there are necessary space for the ext field inside rib node.
Parameters
Returns
Get nexthop from the rib node
Parameters
Returns
Set nexthop into the rib node
Parameters
Returns
Create RIB
Parameters
Returns
Find an existing RIB object and return a pointer to it.
Parameters
Returns
Free an RIB object.
Parameters
Generated automatically by Doxygen for DPDK from the source code.
| Version 24.11.3 | DPDK |