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