ip_session_redirect: add session redirect plugin
[vpp.git] / src / plugins / ip_session_redirect / ip_session_redirect.h
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:
5  *
6  *     http://www.apache.org/licenses/LICENSE-2.0
7  *
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. */
13
14 #ifndef IP_SESSION_REDIRECT_H_
15 #define IP_SESSION_REDIRECT_H_
16
17 #include <vnet/fib/fib_node.h>
18
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,
23                              const u8 *match);
24
25 #endif /* IP_SESSION_REDIRECT_H_ */
26
27 /*
28  * fd.io coding-style-patch-verification: ON
29  *
30  * Local Variables:
31  * eval: (c-set-style "gnu")
32  * End:
33  */