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,
29 } fib_test_lb_bucket_type_t;
31 typedef struct fib_test_lb_bucket_t_ {
32 fib_test_lb_bucket_type_t type;
46 mpls_label_t label_stack[8];
71 } fib_test_lb_bucket_t;
73 typedef enum fib_test_rep_bucket_type_t_ {
76 } fib_test_rep_bucket_type_t;
78 typedef struct fib_test_rep_bucket_t_ {
79 fib_test_rep_bucket_type_t type;
95 } fib_test_rep_bucket_t;
98 extern int fib_test_validate_rep_v(const replicate_t *rep,
102 extern int fib_test_validate_lb_v(const load_balance_t *lb,
106 extern int fib_test_validate_entry(fib_node_index_t fei,
107 fib_forward_chain_type_t fct,