(socket_set_tos): if setsockopt failed with EINVAL failed, just ignore

it, sock was probably a just a non AF_INET socket


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12015 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2003-04-15 03:26:51 +00:00
parent d6ec2db44c
commit a3521e0755

View File

@@ -270,7 +270,8 @@ socket_set_tos (int sock, int tos)
{
#if defined(IP_TOS) && defined(HAVE_SETSOCKOPT)
if (setsockopt (sock, IPPROTO_IP, IP_TOS, (void *) &tos, sizeof (int)) < 0)
warn ("setsockopt TOS (ignored)");
if (errno != EINVAL)
warn ("setsockopt TOS (ignored)");
#endif
}