|
From: | Petr Cernin |
Subject: | [lwip-devel] [bug #29148] Incorrect PBUF_POOL_BUFSIZE for ports where ETH_PAD_SIZE > 0 |
Date: | Tue, 09 Mar 2010 18:44:33 +0000 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; cs; rv:1.9.1.8) Gecko/20100202 Firefox/3.5.8 (.NET CLR 3.5.30729) |
URL: <http://savannah.nongnu.org/bugs/?29148> Summary: Incorrect PBUF_POOL_BUFSIZE for ports where ETH_PAD_SIZE > 0 Project: lwIP - A Lightweight TCP/IP stack Submitted by: cerninp Submitted on: Tue 09 Mar 2010 06:44:33 PM GMT Category: pbufs Severity: 3 - Normal Item Group: Faulty Behaviour Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Planned Release: lwIP version: CVS Head _______________________________________________________ Details: Hello, In opt.h the default value of PBUF_POOL_BUFFSIZE is defined as: LWIP_MEM_ALIGN_SIZE(TCP_MSS+40+PBUF_LINK_HLEN) I think there should be LWIP_MEM_ALIGN_SIZE(TCP_MSS+40+PBUF_LINK_HLEN+ETH_PAD_SIZE) Current default value isn't correct for ports where ETH_PAD_SIZE > 0 (where unaligned accesses to memory are not allowed). Am I right ? _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/bugs/?29148> _______________________________________________ Message sent via/by Savannah http://savannah.nongnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |