blob: 19943273154e43e806028d9423b46c387cd0a4d5 [file] [log] [blame]
Neale Rannsb71fa752019-04-04 12:43:36 +00001/*
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_0, "ip4-spi-0") \
22 _(IP6_SPI_0, "ip6-spi-0") \
23 _(IP4_SPI_UDP_0, "ip4-spi-o-udp-0") \
24 _(IP4_NO_SUCH_TUNNEL, "ip4-no-such-tunnel") \
25 _(IP6_NO_SUCH_TUNNEL, "ip6-no-such-tunnel")
26
27typedef enum ipsec_punt_reason_t_
28{
29#define _(s,v) IPSEC_PUNT_##s,
30 foreach_ipsec_punt_reason
31#undef _
32 IPSEC_PUNT_N_REASONS,
33} ipsec_punt_reason_type_t;
34
35extern u8 *format_ipsec_punt_reason (u8 * s, va_list * args);
36
37extern vlib_punt_reason_t ipsec_punt_reason[IPSEC_PUNT_N_REASONS];
38
39#endif /* __IPSEC_SPD_H__ */
40
41/*
42 * fd.io coding-style-patch-verification: ON
43 *
44 * Local Variables:
45 * eval: (c-set-style "gnu")
46 * End:
47 */