(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:
		@@ -270,6 +270,7 @@ 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)
 | 
			
		||||
	if (errno != EINVAL)
 | 
			
		||||
	    warn ("setsockopt TOS (ignored)");
 | 
			
		||||
#endif
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user