f-stack/dpdk/lib/librte_net/rte_esp.h

33 lines
462 B
C
Raw Normal View History

2019-06-25 11:12:58 +00:00
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright 2016 Mellanox Technologies, Ltd
2017-04-21 10:43:26 +00:00
*/
#ifndef _RTE_ESP_H_
#define _RTE_ESP_H_
2017-04-21 10:43:26 +00:00
/**
* @file
*
* ESP-related defines
*/
2017-04-21 10:43:26 +00:00
#include <stdint.h>
2017-04-21 10:43:26 +00:00
#ifdef __cplusplus
extern "C" {
2017-04-21 10:43:26 +00:00
#endif
/**
* ESP Header
*/
struct esp_hdr {
rte_be32_t spi; /**< Security Parameters Index */
rte_be32_t seq; /**< packet sequence number */
} __attribute__((__packed__));
#ifdef __cplusplus
}
#endif
#endif /* RTE_ESP_H_ */