[EMAIL PROTECTED] wrote:
the TCP stack just does a sizeof(buf) to find out how much data it has
to play with with this one packet (or the fucntion call to enter the
stack is tcp(buf,count), I don't know without looking)

If it was that easy then how come UDP couldn't do the same thing?
How come UDP needs an explicit field then?

Becoz a UDP packet is not "complete" unless it has all the payload.
If a UDP packet arrives, and the length says 10-octets, but there were only 9, throw the packet away


--
Michael O'Keefe                      |          [EMAIL PROTECTED]
Live on and Ride a 03 BMW F650GSDakar|          [EMAIL PROTECTED]      / |
I like less more or less less than   |Work:+1 858 845 3514        /  |
more. UNIX-live it,love it,fork() it |Fax :+1 858 845 2652       /_p_|
My views are MINE ALONE, blah, blah, |Home:+1 760 788 1296       \`O'|
blah, yackety yack - don't come back |Fax :+1 858                _/_\|_,


--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to