Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
NAT44: run NAT nodes after ACL (VPP-1160)
[vpp.git]
/
src
/
vnet
/
fib
/
fib_test.h
diff --git
a/src/vnet/fib/fib_test.h
b/src/vnet/fib/fib_test.h
index
a9463d6
..
0309b3f
100644
(file)
--- a/
src/vnet/fib/fib_test.h
+++ b/
src/vnet/fib/fib_test.h
@@
-17,16
+17,25
@@
#define __FIB_TEST_H__
#include <vnet/fib/fib_types.h>
#define __FIB_TEST_H__
#include <vnet/fib/fib_types.h>
+#include <vnet/mpls/mpls_types.h>
+#include <vnet/fib/fib_types.h>
+#include <vnet/mpls/packet.h>
+#include <vnet/dpo/load_balance.h>
+#include <vnet/adj/adj_types.h>
+#include <vnet/dpo/replicate_dpo.h>
typedef enum fib_test_lb_bucket_type_t_ {
FT_LB_LABEL_O_ADJ,
FT_LB_LABEL_STACK_O_ADJ,
FT_LB_LABEL_O_LB,
FT_LB_O_LB,
typedef enum fib_test_lb_bucket_type_t_ {
FT_LB_LABEL_O_ADJ,
FT_LB_LABEL_STACK_O_ADJ,
FT_LB_LABEL_O_LB,
FT_LB_O_LB,
- FT_LB_SPECIAL,
- FT_LB_ADJ,
+ FT_LB_MPLS_DISP_O_ADJ,
FT_LB_INTF,
FT_LB_L2,
FT_LB_INTF,
FT_LB_L2,
+ FT_LB_BIER_TABLE,
+ FT_LB_BIER_FMASK,
+ FT_LB_DROP,
+ FT_LB_ADJ,
} fib_test_lb_bucket_type_t;
typedef struct fib_test_lb_bucket_t_ {
} fib_test_lb_bucket_type_t;
typedef struct fib_test_lb_bucket_t_ {
@@
-68,6
+77,13
@@
typedef struct fib_test_lb_bucket_t_ {
{
index_t adj;
} special;
{
index_t adj;
} special;
+ struct
+ {
+ union {
+ index_t table;
+ index_t fmask;
+ };
+ } bier;
};
} fib_test_lb_bucket_t;
};
} fib_test_lb_bucket_t;
@@
-102,12
+118,17
@@
extern int fib_test_validate_rep_v(const replicate_t *rep,
va_list *ap);
extern int fib_test_validate_lb_v(const load_balance_t *lb,
va_list *ap);
extern int fib_test_validate_lb_v(const load_balance_t *lb,
-
u16
n_buckets,
+
int
n_buckets,
va_list *ap);
va_list *ap);
+extern int fib_test_validate_lb(const dpo_id_t *dpo,
+ int n_buckets,
+ ...);
+
extern int fib_test_validate_entry(fib_node_index_t fei,
fib_forward_chain_type_t fct,
int n_buckets,
...);
extern int fib_test_validate_entry(fib_node_index_t fei,
fib_forward_chain_type_t fct,
int n_buckets,
...);
+
#endif
#endif