Neale Ranns | 999c8ee | 2019-02-01 03:31:24 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2015 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 | #ifndef __IPSEC_IO_H__ |
| 16 | #define __IPSEC_IO_H__ |
| 17 | |
Neale Ranns | 999c8ee | 2019-02-01 03:31:24 -0800 | [diff] [blame] | 18 | #define foreach_ipsec_output_next \ |
Kingwel Xie | c69ac31 | 2019-02-04 01:49:29 -0800 | [diff] [blame] | 19 | _ (DROP, "error-drop") |
Neale Ranns | 999c8ee | 2019-02-01 03:31:24 -0800 | [diff] [blame] | 20 | |
| 21 | #define _(v, s) IPSEC_OUTPUT_NEXT_##v, |
| 22 | typedef enum |
| 23 | { |
| 24 | foreach_ipsec_output_next |
| 25 | #undef _ |
| 26 | IPSEC_OUTPUT_N_NEXT, |
| 27 | } ipsec_output_next_t; |
| 28 | |
| 29 | #define foreach_ipsec_input_next \ |
Neale Ranns | b71fa75 | 2019-04-04 12:43:36 +0000 | [diff] [blame] | 30 | _ (PUNT, "punt-dispatch") \ |
Kingwel Xie | c69ac31 | 2019-02-04 01:49:29 -0800 | [diff] [blame] | 31 | _ (DROP, "error-drop") |
Neale Ranns | 999c8ee | 2019-02-01 03:31:24 -0800 | [diff] [blame] | 32 | |
Neale Ranns | 999c8ee | 2019-02-01 03:31:24 -0800 | [diff] [blame] | 33 | typedef enum |
| 34 | { |
Neale Ranns | c87b66c | 2019-02-07 07:26:12 -0800 | [diff] [blame] | 35 | #define _(v, s) IPSEC_INPUT_NEXT_##v, |
Neale Ranns | 999c8ee | 2019-02-01 03:31:24 -0800 | [diff] [blame] | 36 | foreach_ipsec_input_next |
| 37 | #undef _ |
| 38 | IPSEC_INPUT_N_NEXT, |
| 39 | } ipsec_input_next_t; |
| 40 | |
| 41 | |
| 42 | typedef struct |
| 43 | { |
| 44 | u32 spd_index; |
| 45 | } ip4_ipsec_config_t; |
| 46 | |
| 47 | typedef struct |
| 48 | { |
| 49 | u32 spd_index; |
| 50 | } ip6_ipsec_config_t; |
| 51 | |
| 52 | #endif /* __IPSEC_IO_H__ */ |
| 53 | |
| 54 | /* |
| 55 | * fd.io coding-style-patch-verification: ON |
| 56 | * |
| 57 | * Local Variables: |
| 58 | * eval: (c-set-style "gnu") |
| 59 | * End: |
| 60 | */ |