blob: 8d8b5b2d29ea5708d8c64b200ae254ae6f76f1af [file] [log] [blame]
Steven Luongc4b5d102024-07-30 13:44:01 -07001/*
2 * Copyright (c) 2024 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:
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
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.
14 */
15
16#ifndef SRC_VNET_SESSION_SESSION_SDL_H_
17#define SRC_VNET_SESSION_SESSION_SDL_H_
18
19clib_error_t *session_sdl_enable_disable (int enable);
20
21typedef void (*session_sdl_table_walk_fn_t) (u32 fei, ip46_address_t *lcl_ip,
22 u16 fp_len, u32 action_index,
23 u32 fb_proto, u8 *tag, void *ctx);
24void session_sdl_table_walk4 (u32 srtg_handle, session_sdl_table_walk_fn_t fn,
25 void *args);
26void session_sdl_table_walk6 (u32 srtg_handle, session_sdl_table_walk_fn_t fn,
27 void *args);
28
29#endif /* SRC_VNET_SESSION_SESSION_SDL_H_ */
30/*
31 * fd.io coding-style-patch-verification: ON
32 *
33 * Local Variables:
34 * eval: (c-set-style "gnu")
35 * End:
36 */