Klement Sekera | 75e7d13 | 2017-09-20 08:26:30 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2017 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 | /** |
| 17 | * @file |
| 18 | * @brief IPv4 Reassembly. |
| 19 | * |
| 20 | * This file contains the source code for IPv4 reassembly. |
| 21 | */ |
| 22 | |
| 23 | #ifndef __included_ip4_reassembly_h__ |
| 24 | #define __included_ip4_reassembly_h__ |
| 25 | |
| 26 | #include <vnet/api_errno.h> |
| 27 | #include <vnet/vnet.h> |
| 28 | |
| 29 | /** |
| 30 | * @brief set ip4 reassembly configuration |
| 31 | */ |
| 32 | vnet_api_error_t ip4_reass_set (u32 timeout_ms, u32 max_reassemblies, |
| 33 | u32 expire_walk_interval_ms); |
| 34 | |
| 35 | /** |
| 36 | * @brief get ip4 reassembly configuration |
| 37 | */ |
| 38 | vnet_api_error_t ip4_reass_get (u32 * timeout_ms, u32 * max_reassemblies, |
| 39 | u32 * expire_walk_interval_ms); |
| 40 | |
Klement Sekera | 4c53313 | 2018-02-22 11:41:12 +0100 | [diff] [blame] | 41 | vnet_api_error_t ip4_reass_enable_disable (u32 sw_if_index, |
| 42 | u8 enable_disable); |
| 43 | |
Klement Sekera | 75e7d13 | 2017-09-20 08:26:30 +0200 | [diff] [blame] | 44 | #endif /* __included_ip4_reassembly_h */ |
| 45 | |
| 46 | /* |
| 47 | * fd.io coding-style-patch-verification: ON |
| 48 | * |
| 49 | * Local Variables: |
| 50 | * eval: (c-set-style "gnu") |
| 51 | * End: |
| 52 | */ |