CNDP  22.08.0
private_fib6.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright (c) 2018 Vladimir Medvedkin <medvedkinv@gmail.com>
3  * Copyright (c) 2019-2022 Intel Corporation
4  */
5 
6 #ifndef _PRIVATE_FIB6_H_
7 #define _PRIVATE_FIB6_H_
8 
18 #include <stdint.h>
19 
20 #include <cne_common.h>
21 #include "cne_fib6.h"
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
28 #define CNE_FIB6_MAXDEPTH 128
29 
30 struct cne_fib6;
31 struct cne_rib6;
32 
34 typedef int (*cne_fib6_modify_fn_t)(struct cne_fib6 *fib, const uint8_t ip[CNE_FIB6_IPV6_ADDR_SIZE],
35  uint8_t depth, uint64_t next_hop, int op);
37 typedef void (*cne_fib6_lookup_fn_t)(void *fib, uint8_t ips[][CNE_FIB6_IPV6_ADDR_SIZE],
38  uint64_t *next_hops, const unsigned int n);
39 
40 enum cne_fib6_op {
41  CNE_FIB6_ADD,
42  CNE_FIB6_DEL,
43 };
44 
45 #ifdef __cplusplus
46 }
47 #endif
48 
49 #endif /* _PRIVATE_FIB6_H_ */
#define CNE_FIB6_IPV6_ADDR_SIZE
Definition: cne_fib6.h:30
void(* cne_fib6_lookup_fn_t)(void *fib, uint8_t ips[][CNE_FIB6_IPV6_ADDR_SIZE], uint64_t *next_hops, const unsigned int n)
Definition: private_fib6.h:37
int(* cne_fib6_modify_fn_t)(struct cne_fib6 *fib, const uint8_t ip[CNE_FIB6_IPV6_ADDR_SIZE], uint8_t depth, uint64_t next_hop, int op)
Definition: private_fib6.h:34