summaryrefslogtreecommitdiff
path: root/ring_tx.h
diff options
context:
space:
mode:
Diffstat (limited to 'ring_tx.h')
-rw-r--r--ring_tx.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ring_tx.h b/ring_tx.h
index 769f27e..eff7235 100644
--- a/ring_tx.h
+++ b/ring_tx.h
@@ -24,7 +24,7 @@ extern void set_packet_loss_discard(int sock);
static inline int user_may_pull_from_tx(struct tpacket2_hdr *hdr)
{
- return ((hdr->tp_status & TP_STATUS_AVAILABLE) == TP_STATUS_AVAILABLE);
+ return !(hdr->tp_status & (TP_STATUS_SEND_REQUEST | TP_STATUS_SENDING));
}
static inline void kernel_may_pull_from_tx(struct tpacket2_hdr *hdr)