summaryrefslogtreecommitdiff
path: root/ring_tx.h
diff options
context:
space:
mode:
Diffstat (limited to 'ring_tx.h')
-rw-r--r--ring_tx.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ring_tx.h b/ring_tx.h
index 7970045..769f27e 100644
--- a/ring_tx.h
+++ b/ring_tx.h
@@ -37,4 +37,9 @@ static inline int pull_and_flush_tx_ring(int sock)
return sendto(sock, NULL, 0, MSG_DONTWAIT, NULL, 0);
}
+static inline int pull_and_flush_tx_ring_wait(int sock)
+{
+ return sendto(sock, NULL, 0, 0, NULL, 0);
+}
+
#endif /* TX_RING_H */