> 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?


> >>>it still appears that the UDP length field is redundant and unnecessary.
> >>No, that would assume that UDP has to run over IP, which it doesn't
> >
> >
> >What about TCP and UDP's usage of a "pseudo IP header" when calculating
> >their checksums?  Those "pseudo IP headers" contain the sender and
> >receiver's IP addresses!?  The TCP and UDP checksum fields
> >therefore seems to lock-in TCP and UDP to use only IP!?!?  (Very
> >Microsoftish :)

Did you read this part?  I've been wondering about this for a while.
Seems IP pseudoheader breaks encapsulation.

cs


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

Reply via email to