]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
updated IP QoS strategy (thanks D.G.)
authorc vw <dl1ycf@darc.de>
Thu, 9 Sep 2021 14:19:51 +0000 (16:19 +0200)
committerc vw <dl1ycf@darc.de>
Thu, 9 Sep 2021 14:19:51 +0000 (16:19 +0200)
new_protocol.c
old_protocol.c

index 8b9d479a0b21531b1121c50a379940a1fc7a79aa..d6bac9d971cbf2301ae08f188837cc6a948ea334 100644 (file)
@@ -595,7 +595,8 @@ void new_protocol_init(int pixels) {
     setsockopt(data_socket, SOL_SOCKET, SO_REUSEADDR, &optval, sizeof(optval));
     setsockopt(data_socket, SOL_SOCKET, SO_REUSEPORT, &optval, sizeof(optval));
 #ifdef __APPLE__
-    optval = 0x10;  // IPTOS_LOWDELAY
+    //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");
     }
index 14c46edc9fd09122787bb80fd9bf3730a1d7f8b7..c856db593302bda4fd16e70aaa8847a651870771 100644 (file)
@@ -406,7 +406,8 @@ static void open_udp_socket() {
       perror("data_socket: SO_RCVBUF");
     }
 #ifdef __APPLE__
-    optval = 0x10;  // IPTOS_LOWDELAY
+    //optval = 0x10;  // IPTOS_LOWDELAY
+    optval = 0xb8;  // DSCP EF
     if(setsockopt(tmp, IPPROTO_IP, IP_TOS, &optval, sizeof(optval))<0) {
       perror("data_socket: SO_PRIORITY");
     }
@@ -480,7 +481,8 @@ static void open_tcp_socket() {
       perror("tcp_socket: SO_RCVBUF");
     }
 #ifdef __APPLE__
-    optval = 0x10;  // IPTOS_LOWDELAY
+    //optval = 0x10;  // IPTOS_LOWDELAY
+    optval = 0xb8;  // DSCP EF
     if(setsockopt(tmp, IPPROTO_IP, IP_TOS, &optval, sizeof(optval))<0) {
       perror("data_socket: SO_PRIORITY");
     }