From c04d5150e9097138a24534447acb8aec17acab19 Mon Sep 17 00:00:00 2001 From: beware Date: Mon, 19 Jan 2009 12:03:32 +0000 Subject: [PATCH] on further thought, change the packet size some more git-svn-id: file:///svnroot/lcore/trunk@23 b1de8a11-f9be-4011-bde0-cc7ace90066a --- lcore.pas | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lcore.pas b/lcore.pas index 99fbe98..99e6339 100755 --- a/lcore.pas +++ b/lcore.pas @@ -35,8 +35,13 @@ interface const - {for IPv6 it is 1440: 1500 - IP header (40) - TCP/UDP header (20). for ipv4 it is 1460} - packetbasesize = 1440; + {how this number is made up: + - ethernet: MTU 1500 + - be safe for either "ethernet v1" or "PPPoE", both take 8 bytes + - IPv6 header: 40 bytes (IPv4 is 20) + - TCP/UDP header: 20 bytes + } + packetbasesize = 1432; receivebufsize=packetbasesize*8; var -- 2.30.2