api: add missing version info
[vpp.git] / src / vnet / tunnel / tunnel_types.api
1 /* Hey Emacs use -*- mode: C -*- */
2 /*
3  * Copyright (c) 2019 Cisco and/or its affiliates.
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at:
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 option version = "1.0.0";
17
18 /**
19  * Flags controlling tunnel behaviour
20  */
21 enum tunnel_encap_decap_flags : u8
22 {
23   TUNNEL_API_ENCAP_DECAP_FLAG_NONE = 0,
24   /** at encap, copy the DF bit of the payload into the tunnel header */
25   TUNNEL_API_ENCAP_DECAP_FLAG_ENCAP_COPY_DF = 0x1,
26   /** at encap, set the DF bit in the tunnel header */
27   TUNNEL_API_ENCAP_DECAP_FLAG_ENCAP_SET_DF = 0x2,
28   /** at encap, copy the DSCP bits of the payload into the tunnel header */
29   TUNNEL_API_ENCAP_DECAP_FLAG_ENCAP_COPY_DSCP = 0x4,
30   /** at encap, copy the ECN bit of the payload into the tunnel header */
31   TUNNEL_API_ENCAP_DECAP_FLAG_ENCAP_COPY_ECN = 0x8,
32   /** at decap, copy the ECN bit of the tunnel header into the payload */
33   TUNNEL_API_ENCAP_DECAP_FLAG_DECAP_COPY_ECN = 0x10,
34   /** at encap, compute flow hash on the inner packet for more entropy */
35   TUNNEL_API_ENCAP_DECAP_FLAG_ENCAP_INNER_HASH = 0x20 [backwards_compatible],
36 };
37
38 /**
39  * tunnel mode
40  */
41 enum tunnel_mode : u8
42 {
43   /** point-to-point */
44   TUNNEL_API_MODE_P2P = 0,
45   /** multi-point */
46   TUNNEL_API_MODE_MP,
47 };
48
49 /*
50  * Local Variables:
51  * eval: (c-set-style "gnu")
52  * End:
53  */