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.

Submitted by:  Boris Lubman <borislub>
Submitted on:  Sun 18 Jan 2009 11:25:25 AM UTC  
 
Category: pbufsSeverity: 3 - Normal
Item Group: Compiler WarningStatus: Works For Me
Privacy: PublicAssigned to: Jonathan Larmour <jifl>
Open/Closed: ClosedPlanned 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>
Project MemberIn charge of this item.
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>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 18 Jan 2009 07:38:30 PM UTCjiflStatusNone=>Works For Me
      Assigned toNone=>jifl
      Open/ClosedOpen=>Closed
    Sun 18 Jan 2009 11:25:25 AM UTCborislubCarbon-Copy-=>Added borislub

    Back to the top


    Powered by Savane 3.1-cleanup1