History

af_packet: pass checksum validation status to the user

Introduce TP_STATUS_CSUM_VALID tp_status flag to tell the af_packet user that at least the transport header checksum has been already validated. For now, the flag may be set for incoming packets only.

Alexander Drozdov committed 11 years ago

Commit 682f0481 parent 68c2e5d3 files · +20 −3Browse files

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

Unified · Split

include/uapi/linux/if_packet.h+1−0
@@ -99,6 +99,7 @@ struct tpacket_auxdata { · 98 unmodified lines
9999 #define TP_STATUS_VLAN_VALID (1 << 4) /* auxdata has valid tp_vlan_tci */
100100 #define TP_STATUS_BLK_TMO (1 << 5)
101101 #define TP_STATUS_VLAN_TPID_VALID (1 << 6) /* auxdata has valid tp_vlan_tpid */
102+#define TP_STATUS_CSUM_VALID (1 << 7)
102103
103104 /* Tx ring - header status */
104105 #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