Introduce TP_STATUS_GSO_TCP tp_status flag to tell the af_packet user that this is a TCP GSO packet. When parsing IPv4 BIG TCP packets in tcpdump/libpcap, it can use tp_len as the IPv4 packet len when this flag is set, as iph tot_len is set to 0 for IPv4 BIG TCP packets.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -115,6 +115,7 @@ struct tpacket_auxdata { · 114 unmodified lines | |||
| 115 | #define TP_STATUS_BLK_TMO (1 << 5) | 115 | #define TP_STATUS_BLK_TMO (1 << 5) |
| 116 | #define TP_STATUS_VLAN_TPID_VALID (1 << 6) /* auxdata has valid tp_vlan_tpid */ | 116 | #define TP_STATUS_VLAN_TPID_VALID (1 << 6) /* auxdata has valid tp_vlan_tpid */ |
| 117 | #define TP_STATUS_CSUM_VALID (1 << 7) | 117 | #define TP_STATUS_CSUM_VALID (1 << 7) |
| 118 | #define TP_STATUS_GSO_TCP (1 << 8) | ||
| 118 | 119 | ||
| 119 | /* Tx ring - header status */ | 120 | /* Tx ring - header status */ |
| 120 | #define TP_STATUS_AVAILABLE 0 | 121 | #define TP_STATUS_AVAILABLE 0 |