zoukankan      html  css  js  c++  java
  • 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__));
  • 相关阅读:
    子字符串substring 问题
    [Coding Practice] Maximum number of zeros in NxN matrix
    挖一挖unsigned int和补码
    1. 概览
    1. 概览
    Linux sudo 命令的应用
    将秒转化为时分秒
    PHP 信号管理
    HTTP Cache
    Linux 文件压缩与归档
  • 原文地址:https://www.cnblogs.com/dream397/p/13744848.html
Copyright © 2011-2022 走看看