net: add compat headers without rte prefix
[dpdk.git] / lib / librte_net / rte_esp.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright 2016 Mellanox Technologies, Ltd
3  */
4
5 #ifndef _RTE_ESP_H_
6 #define _RTE_ESP_H_
7
8 /**
9  * @file
10  *
11  * ESP-related defines
12  */
13
14 #include <stdint.h>
15
16 #ifndef RTE_NET_NO_COMPAT
17 #include <rte_esp_compat.h>
18 #endif
19
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23
24 /**
25  * ESP Header
26  */
27 struct rte_esp_hdr {
28         rte_be32_t spi;  /**< Security Parameters Index */
29         rte_be32_t seq;  /**< packet sequence number */
30 } __attribute__((__packed__));
31
32 #ifdef __cplusplus
33 }
34 #endif
35
36 #endif /* RTE_ESP_H_ */