| rte_rib6.h(3) | Library Functions Manual | rte_rib6.h(3) |
rte_rib6.h
#include <rte_memcpy.h>
#include <rte_common.h>
#include <rte_ip6.h>
struct rte_rib6_conf
enum { RTE_RIB6_GET_NXT_ALL, RTE_RIB6_GET_NXT_COVER
}
static void rte_rib6_copy_addr (uint8_t *dst, const uint8_t
*src) __rte_deprecated_msg('use direct struct assignment')
static int rte_rib6_is_equal (const uint8_t *ip1, const uint8_t *ip2)
__rte_deprecated_msg('use rte_ipv6_addr_eq')
static uint8_t get_msk_part (uint8_t depth, int byte) __rte_deprecated
struct rte_rib6_node * rte_rib6_lookup (struct rte_rib6 *rib, const
struct rte_ipv6_addr *ip)
struct rte_rib6_node * rte_rib6_lookup_parent (struct rte_rib6_node
*ent)
struct rte_rib6_node * rte_rib6_lookup_exact (struct rte_rib6 *rib,
const struct rte_ipv6_addr *ip, uint8_t depth)
struct rte_rib6_node * rte_rib6_get_nxt (struct rte_rib6 *rib, const
struct rte_ipv6_addr *ip, uint8_t depth, struct rte_rib6_node *last,
int flag)
void rte_rib6_remove (struct rte_rib6 *rib, const struct
rte_ipv6_addr *ip, uint8_t depth)
struct rte_rib6_node * rte_rib6_insert (struct rte_rib6 *rib, const
struct rte_ipv6_addr *ip, uint8_t depth)
int rte_rib6_get_ip (const struct rte_rib6_node *node, struct
rte_ipv6_addr *ip)
int rte_rib6_get_depth (const struct rte_rib6_node *node, uint8_t
*depth)
void * rte_rib6_get_ext (struct rte_rib6_node *node)
int rte_rib6_get_nh (const struct rte_rib6_node *node, uint64_t *nh)
int rte_rib6_set_nh (struct rte_rib6_node *node, uint64_t nh)
struct rte_rib6 * rte_rib6_create (const char *name, int socket_id,
const struct rte_rib6_conf *conf)
struct rte_rib6 * rte_rib6_find_existing (const char *name)
void rte_rib6_free (struct rte_rib6 *rib)
RTE rib6 library.
Level compressed tree implementation for IPv6 Longest Prefix Match
Definition in file rte_rib6.h.
rte_rib6_get_nxt() flags
Enumerator
Definition at line 30 of file rte_rib6.h.
Copy IPv6 address from one location to another
Parameters
Definition at line 64 of file rte_rib6.h.
Compare two IPv6 addresses
Parameters
Returns
Definition at line 87 of file rte_rib6.h.
Get 8-bit part of 128-bit IPv6 mask
Parameters
Returns
Definition at line 113 of file rte_rib6.h.
Lookup an IP into the RIB structure
Parameters
Returns
Lookup less specific route into the RIB structure
Parameters
Returns
Provides exact mach lookup of the 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_rib6_node
Parameters
Returns
Get a depth from rte_rib6_node
Parameters
Returns
Get ext field from the rte_rib6_node It is caller responsibility to make sure there are necessary space for the ext field inside rib6 node.
Parameters
Returns
Get nexthop from the rte_rib6_node
Parameters
Returns
Set nexthop into the rte_rib6_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 |