Steven Luong | c4b5d10 | 2024-07-30 13:44:01 -0700 | [diff] [blame] | 1 | /* |
| 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 | |
| 19 | clib_error_t *session_sdl_enable_disable (int enable); |
| 20 | |
| 21 | typedef 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); |
| 24 | void session_sdl_table_walk4 (u32 srtg_handle, session_sdl_table_walk_fn_t fn, |
| 25 | void *args); |
| 26 | void 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 | */ |