Yes but wouldn't you need to know the size of *each* TCP packet?....
I assume you don't need an explicit TCP length field because you can calculate the TCP packet length by substracting the TCP header length from the *IP packet* length. (IP packets *do* have length field.) Since you can do the same for UDP it still appears that the UDP length field is redundant and unnecessary. Chris On Fri, 2005-11-18 at 10:45 -0800, Michael O'Keefe wrote: > Christian Seberino wrote: > > I noticed that UDP has a total length field (bytes 5 & 6) > > but TCP does NOT! (TCP has a header length field only > > which is half of byte 13) > > a UDP packet is the entire message. Each UDP packet is self contained. > TCP packets are part of a stream, a fragment of the whole stream. So > nobody knows how long the stream is. > > > -- > 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 _/_\|_, > > -- _______________________________________ Christian Seberino, Ph.D. SPAWAR Systems Center San Diego Code 2872 49258 Mills Street, Room 158 San Diego, CA 92152-5385 U.S.A. Phone: (619) 553-9973 Fax : (619) 553-6521 Email: [EMAIL PROTECTED] _______________________________________
signature.asc
Description: This is a digitally signed message part
-- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
