Browse code

core: print tos value if socket option for it cannot be set

- to help with GH #598

Daniel-Constantin Mierla authored on 05/05/2016 08:10:59
Showing 1 changed files
... ...
@@ -2751,7 +2751,7 @@ int tcp_init(struct socket_info* sock_info)
2751 2751
 	optval = tos;
2752 2752
 	if (setsockopt(sock_info->socket, IPPROTO_IP, IP_TOS, (void*)&optval, 
2753 2753
 				sizeof(optval)) ==-1){
2754
-		LM_WARN("setsockopt tos: %s\n", strerror(errno));
2754
+		LM_WARN("setsockopt tos: %s (%d)\n", strerror(errno), tos);
2755 2755
 		/* continue since this is not critical */
2756 2756
 	}
2757 2757
 #ifdef HAVE_TCP_DEFER_ACCEPT