rte_tcp_hdr rte_ipv4_hdr
生活随笔
收集整理的這篇文章主要介紹了
rte_tcp_hdr rte_ipv4_hdr
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
/**
* IPv4 Header
*/
struct rte_ipv4_hdr {
uint8_t version_ihl; /**< version and header length */
uint8_t type_of_service; /**< type of service */
rte_be16_t total_length; /**< length of packet */
rte_be16_t packet_id; /**< packet ID */
rte_be16_t fragment_offset; /**< fragmentation offset */
uint8_t time_to_live; /**< time to live */
uint8_t next_proto_id; /**< protocol ID */
rte_be16_t hdr_checksum; /**< header checksum */
rte_be32_t src_addr; /**< source address */
rte_be32_t dst_addr; /**< destination address */
} __attribute__((__packed__));
/**
* TCP Header
*/
struct rte_tcp_hdr {
rte_be16_t src_port; /**< TCP source port. */
rte_be16_t dst_port; /**< TCP destination port. */
rte_be32_t sent_seq; /**< TX data sequence number. */
rte_be32_t recv_ack; /**< RX data acknowledgment sequence number. */
uint8_t data_off; /**< Data offset. */
uint8_t tcp_flags; /**< TCP flags */
rte_be16_t rx_win; /**< RX flow control window. */
rte_be16_t cksum; /**< TCP checksum. */
rte_be16_t tcp_urp; /**< TCP urgent pointer, if any. */
} __attribute__((__packed__));
總結
以上是生活随笔為你收集整理的rte_tcp_hdr rte_ipv4_hdr的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: python二维元素向量_详解pytho
- 下一篇: Okhttp 请求流程梳理 (超详细版)