[bf1942] RFE: TOS bits in IP packets
Scratch Monkey
ScratchMonkey at SewingWitch.com
Thu Feb 20 05:33:11 EST 2003
BTW, to make this easy for Ryan, I looked up the syntax by looking for the
relevant piece of code in the telnet SRPM. Here's the needed piece, from
command.c:
/* net is the socket handle */
int tos = IPTOS_LOWDELAY; /* Low Delay bit */
if ((setsockopt(net, IPPROTO_IP, IP_TOS,
(void *)&tos, sizeof(int)) < 0)
&& (errno != ENOPROTOOPT))
perror("telnet: setsockopt (IP_TOS) (ignored)");
More information about the Bf1942
mailing list