buglwIP - 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: 

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.

Jonathan Larmour <jifl>
Group Member
Sun 18 Jan 2009 11:25:25 AM UTC, original submission:  

Hi all.
I'm using lwip 1.2.0 on Luminary Cortex M3 with Keil toolchain trying to upgrade for 1.3.0 compiler complains to absens of the definition of MEMP_PBUF_POOL used in pbuf.c
Am i wrong on my setup or something else?

Regards
Boris Lubman.



Boris Lubman <borislub>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jifl (Posted a comment)
  • -email is unavailable- added by borislub
  • -email is unavailable- added by borislub (Submitted the item)
  •  

    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 StatusNone Works For Me
        Assigned toNone jifl
        Open/ClosedOpen Closed
    2009-01-18 borislub Carbon-Copy- Added borislub

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code