2018-01-29 13:11:24 +00:00
|
|
|
/* SPDX-License-Identifier: BSD-3-Clause
|
2018-03-20 19:20:35 +00:00
|
|
|
* Copyright 2016 Mellanox Technologies, Ltd
|
2017-10-25 15:07:19 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _RTE_ESP_H_
|
|
|
|
#define _RTE_ESP_H_
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
*
|
|
|
|
* ESP-related defines
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* ESP Header
|
|
|
|
*/
|
|
|
|
struct esp_hdr {
|
2018-01-11 09:15:58 +00:00
|
|
|
rte_be32_t spi; /**< Security Parameters Index */
|
|
|
|
rte_be32_t seq; /**< packet sequence number */
|
2017-10-25 15:07:19 +00:00
|
|
|
} __attribute__((__packed__));
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* RTE_ESP_H_ */
|