Author: toad
Date: 2006-11-15 19:56:11 +0000 (Wed, 15 Nov 2006)
New Revision: 10937
Modified:
trunk/freenet/src/freenet/io/comm/UdpSocketManager.java
Log:
Increase the maximum packet size: PPPoE (1492) minus IP (20) minus UDP (8).
Modified: trunk/freenet/src/freenet/io/comm/UdpSocketManager.java
===================================================================
--- trunk/freenet/src/freenet/io/comm/UdpSocketManager.java 2006-11-15
18:50:45 UTC (rev 10936)
+++ trunk/freenet/src/freenet/io/comm/UdpSocketManager.java 2006-11-15
19:56:11 UTC (rev 10937)
@@ -637,6 +637,6 @@
* @return The maximum packet size supported by this SocketManager.
*/
public int getMaxPacketSize() {
- return 1400; // REDFLAG: Reasonable?
+ return 1492-(20+8); // 1492 = PPPoE, minus IP headers (20), minus UDP
headers (8)
}
}