Use symbolic "IPTOS_LOWDELAY" instead of octal bit value for this socket

option. The bit value was wrong.
This commit is contained in:
dg 1995-05-15 11:58:03 +00:00
parent 94d194c4e9
commit 0193ce074a

View File

@ -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)