FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
ipsec_punt.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2019 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_PUNT_H__
16 #define __IPSEC_PUNT_H__
17 
18 #include <vlib/vlib.h>
19 
20 #define foreach_ipsec_punt_reason \
21  _ (IP4_SPI_UDP_0, "ipsec4-spi-o-udp-0", IP4_PACKET) \
22  _ (IP4_NO_SUCH_TUNNEL, "ipsec4-no-such-tunnel", IP4_PACKET) \
23  _ (IP6_NO_SUCH_TUNNEL, "ipsec6-no-such-tunnel", IP6_PACKET)
24 
26 {
27 #define _(s, v, f) IPSEC_PUNT_##s,
29 #undef _
32 
33 extern u8 *format_ipsec_punt_reason (u8 * s, va_list * args);
34 
36 
37 #endif /* __IPSEC_SPD_H__ */
38 
39 /*
40  * fd.io coding-style-patch-verification: ON
41  *
42  * Local Variables:
43  * eval: (c-set-style "gnu")
44  * End:
45  */
vlib.h
vlib_punt_reason_t
enum vlib_punt_reason_t_ vlib_punt_reason_t
The 'syatem' defined punt reasons.
foreach_ipsec_punt_reason
#define foreach_ipsec_punt_reason
Definition: ipsec_punt.h:20
IPSEC_PUNT_N_REASONS
@ IPSEC_PUNT_N_REASONS
Definition: ipsec_punt.h:30
ipsec_punt_reason_t_
ipsec_punt_reason_t_
Definition: ipsec_punt.h:25
ipsec_punt_reason_type_t
enum ipsec_punt_reason_t_ ipsec_punt_reason_type_t
u8
unsigned char u8
Definition: types.h:56
ipsec_punt_reason
vlib_punt_reason_t ipsec_punt_reason[IPSEC_PUNT_N_REASONS]
Definition: ipsec_punt.c:25
format_ipsec_punt_reason
u8 * format_ipsec_punt_reason(u8 *s, va_list *args)