aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--networking/ntpd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/networking/ntpd.c b/networking/ntpd.c
index 6cd497090..a1b8ac5b0 100644
--- a/networking/ntpd.c
+++ b/networking/ntpd.c
@@ -93,10 +93,10 @@
93 93
94#include "libbb.h" 94#include "libbb.h"
95#include <math.h> 95#include <math.h>
96#include <netinet/ip.h> /* For IPTOS_LOWDELAY definition */ 96#include <netinet/ip.h> /* For IPTOS_DSCP_AF21 definition */
97#include <sys/timex.h> 97#include <sys/timex.h>
98#ifndef IPTOS_LOWDELAY 98#ifndef IPTOS_DSCP_AF21
99# define IPTOS_LOWDELAY 0x10 99# define IPTOS_DSCP_AF21 0x48
100#endif 100#endif
101 101
102 102
@@ -910,7 +910,7 @@ send_query_to_peer(peer_t *p)
910#if ENABLE_FEATURE_IPV6 910#if ENABLE_FEATURE_IPV6
911 if (family == AF_INET) 911 if (family == AF_INET)
912#endif 912#endif
913 setsockopt_int(fd, IPPROTO_IP, IP_TOS, IPTOS_LOWDELAY); 913 setsockopt_int(fd, IPPROTO_IP, IP_TOS, IPTOS_DSCP_AF21);
914 free(local_lsa); 914 free(local_lsa);
915 } 915 }
916 916
@@ -2320,7 +2320,7 @@ static NOINLINE void ntp_init(char **argv)
2320 xfunc_die(); 2320 xfunc_die();
2321 } 2321 }
2322 socket_want_pktinfo(G_listen_fd); 2322 socket_want_pktinfo(G_listen_fd);
2323 setsockopt_int(G_listen_fd, IPPROTO_IP, IP_TOS, IPTOS_LOWDELAY); 2323 setsockopt_int(G_listen_fd, IPPROTO_IP, IP_TOS, IPTOS_DSCP_AF21);
2324 } 2324 }
2325#endif 2325#endif
2326 /* I hesitate to set -20 prio. -15 should be high enough for timekeeping */ 2326 /* I hesitate to set -20 prio. -15 should be high enough for timekeeping */