2 * Copyright (c) 2020 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.
19 #include <vnet/ip/ip_types.h>
21 #define foreach_urpf_mode \
26 typedef enum urpf_mode_t_
28 #define _(a,b) URPF_MODE_##a,
31 } __clib_packed urpf_mode_t;
33 #define URPF_N_MODES (URPF_MODE_STRICT+1)
35 extern u8 *format_urpf_mode (u8 * s, va_list * a);
41 u8 fib_index_is_custom;
44 extern urpf_data_t *urpf_cfgs[N_AF][VLIB_N_DIR];
46 extern int urpf_update (urpf_mode_t mode, u32 sw_if_index,
47 ip_address_family_t af, vlib_dir_t dir, u32 fib_index);
52 * fd.io coding-style-patch-verification: ON
55 * eval: (c-set-style "gnu")