• 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__));
  • 相关阅读:
    阅读ajax.pdf
    XPath 学习
    随想
    Angular JS 学习
    Angular JS 学习
    URL Rewrite in IIS with Regular Pattern
    LinQ In Action 学习第四章
    GC垃圾回收
    jvm底层
    类加载流程
  • 原文地址:https://www.cnblogs.com/dream397/p/13744848.html
Copyright © 2020-2023  润新知