mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-17 09:12:25 +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:
parent
41fcf45a8f
commit
4c9b1270ca
@ -1 +1 @@
|
|||||||
Thu Apr 3 18:33:26 EDT 2008
|
Fri Apr 4 13:39:32 EDT 2008
|
||||||
|
@ -162,6 +162,17 @@ int tport_udp_init_primary(tport_primary_t *pri,
|
|||||||
}
|
}
|
||||||
#endif
|
#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 HAVE_IP_RECVERR
|
||||||
if (ai->ai_family == AF_INET || ai->ai_family == AF_INET6) {
|
if (ai->ai_family == AF_INET || ai->ai_family == AF_INET6) {
|
||||||
if (setsockopt(s, IPPROTO_IP, IP_RECVERR, &one, sizeof(one)) < 0) {
|
if (setsockopt(s, IPPROTO_IP, IP_RECVERR, &one, sizeof(one)) < 0) {
|
||||||
|
@ -317,6 +317,13 @@ AC_DEFINE([HAVE_IP_MULTICAST_LOOP],1,[Define to 1 if you have IP_MULTICAST_LOOP]
|
|||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <netinet/in.h>])
|
#include <netinet/in.h>])
|
||||||
|
|
||||||
|
AC_CHECK_DECL([IP_MTU_DISCOVER],
|
||||||
|
AC_DEFINE([HAVE_IP_MTU_DISCOVER],1,
|
||||||
|
[Define to 1 if you have IP_MTU_DISCOVER]),,[
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/socket.h>
|
||||||
|
#include <netinet/in.h>])
|
||||||
|
|
||||||
AC_CACHE_CHECK([for struct addrinfo],
|
AC_CACHE_CHECK([for struct addrinfo],
|
||||||
[ac_cv_struct_addrinfo],[
|
[ac_cv_struct_addrinfo],[
|
||||||
ac_cv_struct_addrinfo=no
|
ac_cv_struct_addrinfo=no
|
||||||
|
Loading…
x
Reference in New Issue
Block a user