|
@@ -440,9 +440,10 @@ and the following flags apply:
|
|
+++ Capture process:
|
|
+++ Capture process:
|
|
from include/linux/if_packet.h
|
|
from include/linux/if_packet.h
|
|
|
|
|
|
- #define TP_STATUS_COPY 2
|
|
|
|
- #define TP_STATUS_LOSING 4
|
|
|
|
- #define TP_STATUS_CSUMNOTREADY 8
|
|
|
|
|
|
+ #define TP_STATUS_COPY (1 << 1)
|
|
|
|
+ #define TP_STATUS_LOSING (1 << 2)
|
|
|
|
+ #define TP_STATUS_CSUMNOTREADY (1 << 3)
|
|
|
|
+ #define TP_STATUS_CSUM_VALID (1 << 7)
|
|
|
|
|
|
TP_STATUS_COPY : This flag indicates that the frame (and associated
|
|
TP_STATUS_COPY : This flag indicates that the frame (and associated
|
|
meta information) has been truncated because it's
|
|
meta information) has been truncated because it's
|
|
@@ -466,6 +467,12 @@ TP_STATUS_CSUMNOTREADY: currently it's used for outgoing IP packets which
|
|
reading the packet we should not try to check the
|
|
reading the packet we should not try to check the
|
|
checksum.
|
|
checksum.
|
|
|
|
|
|
|
|
+TP_STATUS_CSUM_VALID : This flag indicates that at least the transport
|
|
|
|
+ header checksum of the packet has been already
|
|
|
|
+ validated on the kernel side. If the flag is not set
|
|
|
|
+ then we are free to check the checksum by ourselves
|
|
|
|
+ provided that TP_STATUS_CSUMNOTREADY is also not set.
|
|
|
|
+
|
|
for convenience there are also the following defines:
|
|
for convenience there are also the following defines:
|
|
|
|
|
|
#define TP_STATUS_KERNEL 0
|
|
#define TP_STATUS_KERNEL 0
|