From 12c9e87e0b64091e2d35f5abcb5007ecb8a0d115 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Sun, 28 Nov 2010 22:02:53 +0100 Subject: [PATCH] Temporarily disable rx overflow It is not supported by the kernel I do the tests on. --- latester/latester.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/latester/latester.c b/latester/latester.c index 774e9d9..6b5c7ed 100644 --- a/latester/latester.c +++ b/latester/latester.c @@ -302,10 +302,10 @@ void *measure_thread(void *arg) ×tamp_on, sizeof(timestamp_on)) < 0) error(1, errno, "setsockopt SO_TIMESTAMP"); - const int dropmonitor_on = 1; - if (setsockopt(s, SOL_SOCKET, SO_RXQ_OVFL, - &dropmonitor_on, sizeof(dropmonitor_on)) < 0) - error(1, errno, "setsockopt SO_RXQ_OVFL not supported by your Linux Kernel"); +// const int dropmonitor_on = 1; +// if (setsockopt(s, SOL_SOCKET, SO_RXQ_OVFL, +// &dropmonitor_on, sizeof(dropmonitor_on)) < 0) +// error(1, errno, "setsockopt SO_RXQ_OVFL not supported by your Linux Kernel"); pfd[i].fd = s; pfd[i].events = (i == 0) ? POLLERR : POLLIN; -- 2.39.2