99a2dd955f
There is no reason for the DPDK libraries to all have 'librte_' prefix on the directory names. This prefix makes the directory names longer and also makes it awkward to add features referring to individual libraries in the build - should the lib names be specified with or without the prefix. Therefore, we can just remove the library prefix and use the library's unique name as the directory name, i.e. 'eal' rather than 'librte_eal' Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
41 lines
642 B
C
41 lines
642 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright 2016 Mellanox Technologies, Ltd
|
|
*/
|
|
|
|
#ifndef _RTE_ESP_H_
|
|
#define _RTE_ESP_H_
|
|
|
|
/**
|
|
* @file
|
|
*
|
|
* ESP-related defines
|
|
*/
|
|
|
|
#include <rte_byteorder.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* ESP Header
|
|
*/
|
|
struct rte_esp_hdr {
|
|
rte_be32_t spi; /**< Security Parameters Index */
|
|
rte_be32_t seq; /**< packet sequence number */
|
|
} __rte_packed;
|
|
|
|
/**
|
|
* ESP Trailer
|
|
*/
|
|
struct rte_esp_tail {
|
|
uint8_t pad_len; /**< number of pad bytes (0-255) */
|
|
uint8_t next_proto; /**< IPv4 or IPv6 or next layer header */
|
|
} __rte_packed;
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* RTE_ESP_H_ */
|