*
* RTE rib6 library.
*
- * @warning
- * @b EXPERIMENTAL:
- * All functions in this file may be changed or removed without prior notice.
- *
* Level compressed tree implementation for IPv6 Longest Prefix Match
*/
#include <rte_memcpy.h>
-#include <rte_compat.h>
#include <rte_common.h>
#ifdef __cplusplus
* pointer to struct rte_rib6_node on success
* NULL otherwise
*/
-__rte_experimental
struct rte_rib6_node *
rte_rib6_lookup(struct rte_rib6 *rib,
const uint8_t ip[RTE_RIB6_IPV6_ADDR_SIZE]);
* less specific route on success
* NULL otherwise
*/
-__rte_experimental
struct rte_rib6_node *
rte_rib6_lookup_parent(struct rte_rib6_node *ent);
* pointer to struct rte_rib6_node on success
* NULL otherwise
*/
-__rte_experimental
struct rte_rib6_node *
rte_rib6_lookup_exact(struct rte_rib6 *rib,
const uint8_t ip[RTE_RIB6_IPV6_ADDR_SIZE], uint8_t depth);
* pointer to the next more specific prefix
* NULL if there is no prefixes left
*/
-__rte_experimental
struct rte_rib6_node *
rte_rib6_get_nxt(struct rte_rib6 *rib,
const uint8_t ip[RTE_RIB6_IPV6_ADDR_SIZE],
* @param depth
* prefix length
*/
-__rte_experimental
void
rte_rib6_remove(struct rte_rib6 *rib,
const uint8_t ip[RTE_RIB6_IPV6_ADDR_SIZE], uint8_t depth);
* pointer to new rte_rib6_node on success
* NULL otherwise
*/
-__rte_experimental
struct rte_rib6_node *
rte_rib6_insert(struct rte_rib6 *rib,
const uint8_t ip[RTE_RIB6_IPV6_ADDR_SIZE], uint8_t depth);
* 0 on success
* -1 on failure with rte_errno indicating reason for failure.
*/
-__rte_experimental
int
rte_rib6_get_ip(const struct rte_rib6_node *node,
uint8_t ip[RTE_RIB6_IPV6_ADDR_SIZE]);
* 0 on success
* -1 on failure with rte_errno indicating reason for failure.
*/
-__rte_experimental
int
rte_rib6_get_depth(const struct rte_rib6_node *node, uint8_t *depth);
* @return
* pointer to the ext
*/
-__rte_experimental
void *
rte_rib6_get_ext(struct rte_rib6_node *node);
* 0 on success
* -1 on failure, with rte_errno indicating reason for failure.
*/
-__rte_experimental
int
rte_rib6_get_nh(const struct rte_rib6_node *node, uint64_t *nh);
* 0 on success
* -1 on failure, with rte_errno indicating reason for failure.
*/
-__rte_experimental
int
rte_rib6_set_nh(struct rte_rib6_node *node, uint64_t nh);
* Pointer to RIB object on success
* NULL otherwise with rte_errno indicating reason for failure.
*/
-__rte_experimental
struct rte_rib6 *
rte_rib6_create(const char *name, int socket_id,
const struct rte_rib6_conf *conf);
* Pointer to RIB object on success
* NULL otherwise with rte_errno indicating reason for failure.
*/
-__rte_experimental
struct rte_rib6 *
rte_rib6_find_existing(const char *name);
* @return
* None
*/
-__rte_experimental
void
rte_rib6_free(struct rte_rib6 *rib);