mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-14 21:38:34 +00:00
Fri Apr 4 11:15:04 EDT 2008 Pekka.Pessi@nokia.com
* tport_type_udp.c: use IP_MTU_DISCOVER socket option to turn off DF flag Added check for IP_MTU_DISCOVER in m4/sac-su2.m4 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8022 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
41fcf45a8f
commit
4c9b1270ca
3 files changed
+19
-1
No files matched your search
@@ -162,6 +162,17 @@ int tport_udp_init_primary(tport_primary_t *pri,
|
||||
}
|
||||
#endif
|
||||
|
||||
#if HAVE_IP_MTU_DISCOVER
|
||||
{
|
||||
/* Turn off DF flag on Linux */
|
||||
int dont = IP_PMTUDISC_DONT;
|
||||
if (setsockopt(s, IPPROTO_IP, IP_MTU_DISCOVER, &dont, sizeof(dont)) < 0) {
|
||||
SU_DEBUG_3(("setsockopt(%s): %s\n",
|
||||
"IP_MTU_DISCOVER", su_strerror(su_errno())));
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#if HAVE_IP_RECVERR
|
||||
if (ai->ai_family == AF_INET || ai->ai_family == AF_INET6) {
|
||||
if (setsockopt(s, IPPROTO_IP, IP_RECVERR, &one, sizeof(one)) < 0) {
|
||||
|
||||
Reference in new issue
Block a user