Allow latency thresholds for TST009 testing
[samplevnf.git] / VNFs / DPPD-PROX / gre.h
1 /*
2 // Copyright (c) 2010-2017 Intel Corporation
3 //
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
17 #ifndef _GRE_H_
18 #define _GRE_H_
19
20 #define GRE_CRC_PRESENT     0x10
21 #define GRE_ROUTING_PRESENT 0x08
22 #define GRE_KEY_PRESENT     0x04
23 #define GRE_SEQNUM_PRESENT  0x02
24 #define GRE_STRICT_ROUTE    0x01
25
26 struct gre_hdr {
27         uint8_t   recur: 3;   /* recur */
28         uint8_t   bits: 5;    /* bits: Checksum, Routing, Key, Sequence Number, strict Route */
29         uint8_t   version: 3; /* Version: must be 0 */
30         uint8_t   flags: 5;   /* Flags: must be 0 */
31         uint16_t  type;       /* Protocol type */
32         uint32_t  gre_id;     /* Key ID */
33 } __attribute__((__packed__));
34
35 #endif /* _GRE_H_ */