From c6731c73fbdd77adc6a0d176f0d60bf866d3e7ec Mon Sep 17 00:00:00 2001 From: Freaky Tech Date: Mon, 2 Mar 2015 21:04:20 +0100 Subject: increased IPv4 TTL of LLUDP Sockets Signed-off-by: BlueWall --- OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs') diff --git a/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs b/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs index 9bee3ad..1bf47f2 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs @@ -218,6 +218,17 @@ namespace OpenMetaverse try { + if (m_udpSocket.Ttl < 128) + { + m_udpSocket.Ttl = 128; + } + } + catch (SocketException) + { + m_log.Debug("[UDPBASE]: Failed to increase default TTL"); + } + try + { // This udp socket flag is not supported under mono, // so we'll catch the exception and continue m_udpSocket.IOControl(SIO_UDP_CONNRESET, new byte[] { 0 }, null); -- cgit v1.1