lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #18782] the default PBUF_POOL_BUFSIZE value should be


From: dupengbo
Subject: [lwip-devel] [bug #18782] the default PBUF_POOL_BUFSIZE value should be changed
Date: Fri, 23 Mar 2007 07:58:24 +0000
User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)

Follow-up Comment #7, bug #18782 (project lwip):

It is better if PBUF_LINK_HLEN is accounted.

User can change PBUF_LINK_HLEN value according to user's usage.

If user do not need ethernet head, he can define PBUF_LINK_HLEN  = 0, ....


If replace all these const value with macro define, it maybe better.

For example:
In "opt.h"
#define TCP_MSS 128
#define TRANSPORT_HLEN 20
#define IP_HLEN        20
#define LINK_HLEN      0 // or something else

#define PBUF_POOL_BUFSIZE                (TCP_MSS + TRANSPORT_HLEN + IP_HLEN
+ LINK_HLEN)


in "pbuf.h"
#define PBUF_TRANSPORT_HLEN TRANSPORT_HLEN 
#define PBUF_IP_HLEN        IP_HLEN




    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?18782>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]