2
0
Эх сурвалжийг харах

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

- to help with GH #598
Daniel-Constantin Mierla 9 жил өмнө
parent
commit
0118338d82
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      tcp_main.c

+ 1 - 1
tcp_main.c

@@ -2751,7 +2751,7 @@ int tcp_init(struct socket_info* sock_info)
 	optval = tos;
 	if (setsockopt(sock_info->socket, IPPROTO_IP, IP_TOS, (void*)&optval, 
 				sizeof(optval)) ==-1){
-		LM_WARN("setsockopt tos: %s\n", strerror(errno));
+		LM_WARN("setsockopt tos: %s (%d)\n", strerror(errno), tos);
 		/* continue since this is not critical */
 	}
 #ifdef HAVE_TCP_DEFER_ACCEPT