lwIP - A Lightweight TCP/IP stack - Bugs: bug #25352, No MEMP_PBUF_POOL definition.
You are not allowed to post comments on this tracker with your current authentication level.
bug #25352: No MEMP_PBUF_POOL definition.
Submitter: | Boris Lubman <borislub> | ||
Submitted: | Sun 18 Jan 2009 11:25:25 AM UTC | ||
Category: | pbufs | Severity: | 3 - Normal |
Item Group: | Compiler Warning | Status: | Works For Me |
Privacy: | Public | Assigned to: | jifl |
Open/Closed: | Closed | Planned Release: | None |
lwIP version: | 1.3.0 |
Sun 18 Jan 2009 07:38:30 PM UTC, comment #1: |
Jonathan Larmour <jifl> |
Sun 18 Jan 2009 11:25:25 AM UTC, original submission:
Hi all.
|
Boris Lubman <borislub> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
Carbon-Copy List
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 4 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2009-01-18 | jifl | Status | None | Works For Me | |
Assigned to | None | jifl | |||
Open/Closed | Open | Closed | |||
2009-01-18 | borislub | Carbon-Copy | - | Added borislub |
Powered by Savane 3.13-caa5.
Corresponding source code
This is not an lwIP problem, but something with your port. pbuf.c does depend on MEM_PBUF_POOL, but that gets defined in memp_std.h which is in turn included from memp.h. What happens si that memp.h defines a macro LWIP_MEMPOOL, which includes memp_std.h multiple times with different values of the LWIP_MEMPOOL macro. In the first one, it is set as this:
typedef enum {
#define LWIP_MEMPOOL(name,num,size,desc) MEMP_##name,
#include "lwip/memp_std.h"
MEMP_MAX
} memp_t;
And in memp_std.h, there is:
#define LWIP_PBUF_MEMPOOL(name, num, payload, desc) LWIP_MEMPOOL(name, num, (MEMP_ALIGN_SIZE(sizeof(struct pbuf)) + MEMP_ALIGN_SIZE(payload)), desc)
and
LWIP_PBUF_MEMPOOL(PBUF_POOL, PBUF_POOL_SIZE, PBUF_POOL_BUFSIZE,
"PBUF_POOL")
Note the use of the preprocessor string concatenation operator. So that's how MEMP_PBUF_POOL gets defined.
Further discussion is better suited to the lwip-users list.