lwip-users
[Top][All Lists]
Advanced

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

RE: [lwip-users] memp.c with NO_SYS


From: robert
Subject: RE: [lwip-users] memp.c with NO_SYS
Date: Thu, 29 May 2008 13:33:15 -0400 (EDT)

On Thu, 29 May 2008, Bill Auerbach wrote:
These sizes (the array initializer) are #included by memp.c in memp_std.h.
My memp_std.h has NO_SYS wrappers:

#if NO_SYS==0
LWIP_MEMPOOL(TCPIP_MSG_API,  MEMP_NUM_TCPIP_MSG_API,   sizeof(struct
tcpip_msg),      "TCPIP_MSG_API")
LWIP_MEMPOOL(TCPIP_MSG_INPKT,MEMP_NUM_TCPIP_MSG_INPKT, sizeof(struct
tcpip_msg),      "TCPIP_MSG_INPKT")
#endif /* NO_SYS==0 */

Thanks Bill, my memp_std.h has NO_SYS wrappers as well, but memp.c does not. So the structure that causes the compile to fail is this one, in memp.c

static const u16_t memp_sizes[MEMP_MAX] = {
  sizeof(struct pbuf),
  sizeof(struct raw_pcb),
  sizeof(struct udp_pcb),
  sizeof(struct tcp_pcb),
  sizeof(struct tcp_pcb_listen),
  sizeof(struct tcp_seg),
  sizeof(struct netbuf),
  sizeof(struct netconn),
  sizeof(struct api_msg),
  sizeof(struct tcpip_msg),
  sizeof(struct sys_timeout)
};


Turning off LWIP_RAW causes a simpilar error for the "struct raw_pcb"
entry.  Of course I could just be doing something silly here...:)

--
Best Regards,
Robert

Fighting SPAM with Active Spam Filter, see:
http://a-s-k.sourceforge.net/




reply via email to

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