diff options
-rw-r--r-- | ring.h | 2 | ||||
-rw-r--r-- | ring_rx.c | 2 | ||||
-rw-r--r-- | ring_tx.c | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -102,7 +102,7 @@ static inline void prepare_polling(int sock, struct pollfd *pfd) pfd->events = POLLIN | POLLRDNORM | POLLERR; } -static inline void set_sockopt_tpacket(int sock) +static inline void set_sockopt_tpacket_v2(int sock) { int ret, val = TPACKET_V2; @@ -60,7 +60,7 @@ void create_rx_ring(int sock, struct ring *ring, int verbose) { int ret; - set_sockopt_tpacket(sock); + set_sockopt_tpacket_v2(sock); retry: ret = setsockopt(sock, SOL_PACKET, PACKET_RX_RING, &ring->layout, sizeof(ring->layout)); @@ -70,7 +70,7 @@ void create_tx_ring(int sock, struct ring *ring, int verbose) { int ret; - set_sockopt_tpacket(sock); + set_sockopt_tpacket_v2(sock); retry: ret = setsockopt(sock, SOL_PACKET, PACKET_TX_RING, &ring->layout, sizeof(ring->layout)); |