Don't generate log messages about "setsockopt (IP_TOS)" not working on GNO.
This isn't currently supported by MariGNOtti, so it always generates the message, but it's really not important.
This commit is contained in:
parent
e761e0fc48
commit
cc929f87ce
|
@ -415,7 +415,7 @@ main(int argc, char *argv[])
|
||||||
if (tos
|
if (tos
|
||||||
&& (setsockopt(STDIN_FILENO, IPPROTO_IP, IP_TOS,
|
&& (setsockopt(STDIN_FILENO, IPPROTO_IP, IP_TOS,
|
||||||
(char *)&tos, sizeof(tos)) < 0)
|
(char *)&tos, sizeof(tos)) < 0)
|
||||||
&& (errno != ENOPROTOOPT) )
|
&& (errno != ENOPROTOOPT) && (errno != EINVAL) )
|
||||||
syslog(LOG_WARNING, "setsockopt (IP_TOS): %m");
|
syslog(LOG_WARNING, "setsockopt (IP_TOS): %m");
|
||||||
}
|
}
|
||||||
#endif /* defined(IPPROTO_IP) && defined(IP_TOS) */
|
#endif /* defined(IPPROTO_IP) && defined(IP_TOS) */
|
||||||
|
|
Loading…
Reference in New Issue