[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] Re: [lwip] PBUF_TRANSPORT_HLEN
From: |
Adam Dunkels |
Subject: |
[lwip-users] Re: [lwip] PBUF_TRANSPORT_HLEN |
Date: |
Thu, 09 Jan 2003 01:04:26 -0000 |
Hi Leon!
On Friday 01 March 2002 14.50, you wrote:
> on the subject of pbufs, why is PBUF_TRANSPORT_HLEN
> the same as PBUF_IP_HLEN?
This is just because the IP header is just as large as the TCP header - 20
bytes.
> I suspect the transport (UDP, TCP) header must be included in
> the header size as well?
It is, because of the fallthroughs in the switch() statement in pbuf.c. The
offset variable is incremented through the switch, until it is correct (20 +
20 + PBUF_LINK_HLEN).
/adam
--
Adam Dunkels <address@hidden>
http://www.sics.se/~adam
[This message was sent through the lwip discussion list.]
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lwip-users] Re: [lwip] PBUF_TRANSPORT_HLEN,
Adam Dunkels <=