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:
7 * http://www.apache.org/licenses/LICENSE-2.0
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.
15 #ifndef __IPSEC_IO_H__
16 #define __IPSEC_IO_H__
18 #define IPSEC_FLAG_IPSEC_GRE_TUNNEL (1 << 0)
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")
27 #define _(v, s) IPSEC_OUTPUT_NEXT_##v,
30 foreach_ipsec_output_next
33 } ipsec_output_next_t;
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")
42 #define _(v, s) IPSEC_INPUT_NEXT_##v,
45 foreach_ipsec_input_next
61 #endif /* __IPSEC_IO_H__ */
64 * fd.io coding-style-patch-verification: ON
67 * eval: (c-set-style "gnu")