struct rte_ipv4_hdr *ip = (struct rte_ipv4_hdr *)(msg + sizeof(struct rte_ether_hdr)); ip->version_ihl = 0x45; ip->type_of_service = 0; ip->total_length = htons(total_len - sizeof(struct rte_ether_hdr)); ip->packet_id = 0; ip->fragment_offset = 0; ip->time_to_liv...
* IPv4 Header*/structrte_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...
receive enablement.XSUM Error Count Number of receive IPv4, TCP, UDP or SCTP XSUM errors.MAC Loc...
如果PacketUnit的first_fragment和last_fragment字段都是 true,那就直接把载荷拷进去; 这种情况有可能是SingleNalUnit,也有可能是NonInterleaved的 STAP-A 包,因为NonInterleaved时,如果Fragment可以放进一个包,那就会封为 STAP-A,而如果只生成了一个PacketUnit,那它的first_fragment和last_fragment都会是 true; 否则,...