1 /* Copyright (c) 2021-2022 Cisco and/or its affiliates.
2 * Licensed under the Apache License, Version 2.0 (the "License");
3 * you may not use this file except in compliance with the License.
4 * You may obtain a copy of the License at:
6 * http://www.apache.org/licenses/LICENSE-2.0
8 * Unless required by applicable law or agreed to in writing, software
9 * distributed under the License is distributed on an "AS IS" BASIS,
10 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 * See the License for the specific language governing permissions and
12 * limitations under the License. */
14 #ifndef IP_SESSION_REDIRECT_H_
15 #define IP_SESSION_REDIRECT_H_
17 #include <vnet/fib/fib_node.h>
19 int ip_session_redirect_add (vlib_main_t *vm, u32 table_index,
20 u32 opaque_index, dpo_proto_t proto, int is_punt,
21 const u8 *match, const fib_route_path_t *rpaths);
22 int ip_session_redirect_del (vlib_main_t *vm, u32 table_index,
25 #endif /* IP_SESSION_REDIRECT_H_ */
28 * fd.io coding-style-patch-verification: ON
31 * eval: (c-set-style "gnu")