blob: aa6fa8df7c78d77000d550622f56198a154457a4 [file] [log] [blame]
Neale Ranns999c8ee2019-02-01 03:31:24 -08001/*
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 \
21 _ (DROP, "error-drop") \
22 _ (ESP4_ENCRYPT, "esp4-encrypt") \
23 _ (AH4_ENCRYPT, "ah4-encrypt") \
24 _ (ESP6_ENCRYPT, "esp6-encrypt") \
25 _ (AH6_ENCRYPT, "ah6-encrypt")
26
27#define _(v, s) IPSEC_OUTPUT_NEXT_##v,
28typedef enum
29{
30 foreach_ipsec_output_next
31#undef _
32 IPSEC_OUTPUT_N_NEXT,
33} ipsec_output_next_t;
34
35#define foreach_ipsec_input_next \
36 _ (DROP, "error-drop") \
37 _ (ESP4_DECRYPT, "esp4-decrypt") \
38 _ (AH4_DECRYPT, "ah4-decrypt") \
39 _ (ESP6_DECRYPT, "esp6-decrypt") \
40 _ (AH6_DECRYPT, "ah6-decrypt")
41
42#define _(v, s) IPSEC_INPUT_NEXT_##v,
43typedef enum
44{
45 foreach_ipsec_input_next
46#undef _
47 IPSEC_INPUT_N_NEXT,
48} ipsec_input_next_t;
49
50
51typedef struct
52{
53 u32 spd_index;
54} ip4_ipsec_config_t;
55
56typedef struct
57{
58 u32 spd_index;
59} ip6_ipsec_config_t;
60
61#endif /* __IPSEC_IO_H__ */
62
63/*
64 * fd.io coding-style-patch-verification: ON
65 *
66 * Local Variables:
67 * eval: (c-set-style "gnu")
68 * End:
69 */