Module: kamailio
Branch: master
Commit: 0118338d82e2471572990a1ea09593265161e4a4
URL:
https://github.com/kamailio/kamailio/commit/0118338d82e2471572990a1ea095932…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-05-05T10:10:59+02:00
core: print tos value if socket option for it cannot be set
- to help with GH #598
---
Modified: tcp_main.c
---
Diff:
https://github.com/kamailio/kamailio/commit/0118338d82e2471572990a1ea095932…
Patch:
https://github.com/kamailio/kamailio/commit/0118338d82e2471572990a1ea095932…
---
diff --git a/tcp_main.c b/tcp_main.c
index 578f7d2..d147257 100644
--- a/tcp_main.c
+++ b/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