version 1.89, 2002/02/24 16:58:32 |
version 1.90, 2002/02/27 21:23:13 |
|
|
*/ |
*/ |
if (packet_connection_is_ipv4()) { |
if (packet_connection_is_ipv4()) { |
if (setsockopt(connection_in, IPPROTO_IP, IP_TOS, |
if (setsockopt(connection_in, IPPROTO_IP, IP_TOS, |
(void *) &lowdelay, sizeof(lowdelay)) < 0) |
&lowdelay, sizeof(lowdelay)) < 0) |
error("setsockopt IPTOS_LOWDELAY: %.100s", |
error("setsockopt IPTOS_LOWDELAY: %.100s", |
strerror(errno)); |
strerror(errno)); |
} |
} |
|
|
* Set IP options for a non-interactive connection. Use |
* Set IP options for a non-interactive connection. Use |
* IPTOS_THROUGHPUT. |
* IPTOS_THROUGHPUT. |
*/ |
*/ |
if (setsockopt(connection_in, IPPROTO_IP, IP_TOS, (void *) &throughput, |
if (setsockopt(connection_in, IPPROTO_IP, IP_TOS, &throughput, |
sizeof(throughput)) < 0) |
sizeof(throughput)) < 0) |
error("setsockopt IPTOS_THROUGHPUT: %.100s", strerror(errno)); |
error("setsockopt IPTOS_THROUGHPUT: %.100s", strerror(errno)); |
} |
} |