1 /* SPDX-License-Identifier: BSD-3-Clause 2 * Copyright(c) 2021 Intel Corporation. 3 */ 4 5 #ifndef _RTE_PPP_H_ 6 #define _RTE_PPP_H_ 7 8 /** 9 * @file 10 * 11 * PPP headers definition. 12 */ 13 14 #include <stdint.h> 15 #include <rte_byteorder.h> 16 17 #ifdef __cplusplus 18 extern "C" { 19 #endif 20 21 /** 22 * PPP Header 23 */ 24 struct rte_ppp_hdr { 25 uint8_t addr; /**< PPP address(8) */ 26 uint8_t ctrl; /**< PPP control(8) */ 27 rte_be16_t proto_id; /**< PPP protocol identifier(16) */ 28 } __rte_packed; 29 30 #ifdef __cplusplus 31 } 32 #endif 33 34 #endif /* _RTE_PPP_H_ */ 35