on further thought, change the packet size some more
authorbeware <beware@bircd.org>
Mon, 19 Jan 2009 12:03:32 +0000 (12:03 +0000)
committerbeware <beware@bircd.org>
Mon, 19 Jan 2009 12:03:32 +0000 (12:03 +0000)
git-svn-id: file:///svnroot/lcore/trunk@23 b1de8a11-f9be-4011-bde0-cc7ace90066a

lcore.pas

index 99fbe983c7b8f46831b6664f2b15f09639c0c973..99e633974383a075aa99c86854c3d6cb6b365bba 100755 (executable)
--- a/lcore.pas
+++ b/lcore.pas
@@ -35,8 +35,13 @@ interface
 \r
 \r
   const\r
-    {for IPv6 it is 1440: 1500 - IP header (40) - TCP/UDP header (20). for ipv4 it is 1460}\r
-    packetbasesize = 1440;\r
+    {how this number is made up:\r
+    - ethernet: MTU 1500\r
+    - be safe for either "ethernet v1" or "PPPoE", both take 8 bytes\r
+    - IPv6 header: 40 bytes (IPv4 is 20)\r
+    - TCP/UDP header: 20 bytes\r
+    }\r
+    packetbasesize = 1432;\r
     receivebufsize=packetbasesize*8;\r
 \r
   var\r