Temporarily disable rx overflow
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sun, 28 Nov 2010 21:02:53 +0000 (22:02 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Sun, 28 Nov 2010 21:02:53 +0000 (22:02 +0100)
It is not supported by the kernel I do the tests on.

latester/latester.c

index 774e9d9..6b5c7ed 100644 (file)
@@ -302,10 +302,10 @@ void *measure_thread(void *arg)
                               &timestamp_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;