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

option. The bit value was wrong.
This commit is contained in:
David Greenman 1995-05-15 11:58:03 +00:00
parent 84fbd1c727
commit f5504b009d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=8533

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)