Use symbolic "IPTOS_LOWDELAY" instead of octal bit value for this socket
option. The bit value was wrong.
This commit is contained in:
parent
84fbd1c727
commit
f5504b009d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=8533
@ -2234,7 +2234,7 @@ tn(argc, argv)
|
||||
tos = tp->t_tos;
|
||||
# endif
|
||||
if (tos < 0)
|
||||
tos = 020; /* Low Delay bit */
|
||||
tos = IPTOS_LOWDELAY;
|
||||
if (tos
|
||||
&& (setsockopt(net, IPPROTO_IP, IP_TOS,
|
||||
(char *)&tos, sizeof(int)) < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user