]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - latester/latester.c
Temporarily disable rx overflow
[can-benchmark.git] / latester / latester.c
index 774e9d9a182b59055341a34cd976d031b405e42d..6b5c7ed72006717b717148a1e062b7395d54b0c5 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;