Omit ToS setting if we don't have IPV6_TCLASS too.
Fixes tests on old BSDs.
This commit is contained in:
parent
f85b118d21
commit
837ffa9699
|
@ -1187,7 +1187,7 @@ set_common_sockopts(int s, int af)
|
|||
&x, sizeof(x)) == -1)
|
||||
err(1, "setsockopt");
|
||||
}
|
||||
#ifdef IP_TOS
|
||||
#if defined(IP_TOS) && defined(IPV6_TCLASS)
|
||||
if (Tflag != -1) {
|
||||
int proto, option;
|
||||
|
||||
|
|
Loading…
Reference in New Issue