]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
Removes SO_PRIORITY settings since this (experimentally)
authorc vw <dl1ycf@darc.de>
Mon, 22 Nov 2021 16:19:43 +0000 (17:19 +0100)
committerc vw <dl1ycf@darc.de>
Mon, 22 Nov 2021 16:19:43 +0000 (17:19 +0100)
leads to more RX sequence errors

new_protocol.c
old_protocol.c

index ef29042db9c1f34369f9914b0fe0a5ef30833fe2..0341ccadbf465520d287458ad88631d12d925b4e 100644 (file)
@@ -598,12 +598,7 @@ void new_protocol_init(int pixels) {
     //optval = 0x10;  // IPTOS_LOWDELAY
     optval = 0xb8;  // DSCP EF
     if(setsockopt(data_socket, IPPROTO_IP, IP_TOS, &optval, sizeof(optval))<0) {
-      perror("data_socket: SO_PRIORITY");
-    }
-#else
-    optval = 6;
-    if(setsockopt(data_socket, SOL_SOCKET, SO_PRIORITY, &optval, sizeof(optval))<0) {
-      perror("data_socket: SO_PRIORITY");
+      perror("data_socket: IP_TOS");
     }
 #endif
 
index 3ece71222286366ad7181b64382a671ed6222a03..1c80355edd22f92dd75bf5ff62a497c4015bdd88 100644 (file)
@@ -409,12 +409,7 @@ static void open_udp_socket() {
     //optval = 0x10;  // IPTOS_LOWDELAY
     optval = 0xb8;  // DSCP EF
     if(setsockopt(tmp, IPPROTO_IP, IP_TOS, &optval, sizeof(optval))<0) {
-      perror("data_socket: SO_PRIORITY");
-    }
-#else
-    optval = 6;
-    if(setsockopt(tmp, SOL_SOCKET, SO_PRIORITY, &optval, sizeof(optval))<0) {
-      perror("data_socket: SO_PRIORITY");
+      perror("data_socket: IP_TOS");
     }
 #endif
 
@@ -484,12 +479,7 @@ static void open_tcp_socket() {
     //optval = 0x10;  // IPTOS_LOWDELAY
     optval = 0xb8;  // DSCP EF
     if(setsockopt(tmp, IPPROTO_IP, IP_TOS, &optval, sizeof(optval))<0) {
-      perror("data_socket: SO_PRIORITY");
-    }
-#else
-    optval = 6;
-    if(setsockopt(tmp, SOL_SOCKET, SO_PRIORITY, &optval, sizeof(optval))<0) {
-      perror("data_socket: SO_PRIORITY");
+      perror("data_socket: IP_TOS");
     }
 #endif
     tcp_socket=tmp;