History

packet: add TP_STATUS_GSO_TCP for tp_status

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.

Xin Long committed 3 years ago

Commit 8e08bb71 parent 50e6fb52 files · +5 −0Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/if_packet.h+1−0
@@ -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 0121#define TP_STATUS_AVAILABLE 0

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t