lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] problem about pbuf_alloc()


From: mENGlONG
Subject: Re: [lwip-users] problem about pbuf_alloc()
Date: Sun, 10 Mar 2013 11:26:15 +0800
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3

in memp.h:

typedef enum {
#define LWIP_MEMPOOL(name,num,size,desc) MEMP_##name,
#include "lwip/memp_std.h"
MEMP_MAX
} memp_t;

in memp_std.h:

LWIP_PBUF_MEMPOOL(PBUF_POOL, PBUF_POOL_SIZE, PBUF_POOL_BUFSIZE, "PBUF_POOL")

#define LWIP_PBUF_MEMPOOL(name, num, payload, desc) LWIP_MEMPOOL(name,
num, (MEMP_ALIGN_SIZE(sizeof(struct pbuf)) + MEMP_ALIGN_SIZE(payload)),
desc)

So pbuf_alloc(PBUF_RAW, 1600, PBUF_POOL) will get CORRECT size!
Sorry for disturbing everyone!

mENGlONG
2013-3-10



reply via email to

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