2 * Copyright (c) 2016 Cisco and/or its affiliates.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at:
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
16 #ifndef __FIB_TEST_H__
17 #define __FIB_TEST_H__
19 #include <vnet/fib/fib_types.h>
21 typedef enum fib_test_lb_bucket_type_t_ {
23 FT_LB_LABEL_STACK_O_ADJ,
30 } fib_test_lb_bucket_type_t;
32 typedef struct fib_test_lb_bucket_t_ {
33 fib_test_lb_bucket_type_t type;
47 mpls_label_t label_stack[8];
72 } fib_test_lb_bucket_t;
74 typedef enum fib_test_rep_bucket_type_t_ {
76 FT_REP_DISP_MFIB_LOOKUP,
78 } fib_test_rep_bucket_type_t;
80 typedef struct fib_test_rep_bucket_t_ {
81 fib_test_rep_bucket_type_t type;
97 } fib_test_rep_bucket_t;
100 extern int fib_test_validate_rep_v(const replicate_t *rep,
104 extern int fib_test_validate_lb_v(const load_balance_t *lb,
108 extern int fib_test_validate_entry(fib_node_index_t fei,
109 fib_forward_chain_type_t fct,