[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [lwip-users] memp.c with NO_SYS
From: |
Bill Auerbach |
Subject: |
RE: [lwip-users] memp.c with NO_SYS |
Date: |
Thu, 29 May 2008 11:16:00 -0400 |
What version of lwIP? I've been running NO_SYS=1 since day one (6 months
ago) and never have had errors compiling any RC3 builds.
Bill
> -----Original Message-----
> From: address@hidden
> [mailto:address@hidden On
> Behalf Of address@hidden
> Sent: Thursday, May 29, 2008 9:44 AM
> To: Mailing list for lwIP users
> Subject: [lwip-users] memp.c with NO_SYS
>
> I have been away from this code for too long...:)
>
> When compiling memp.c with the NO_SYS set to 1
>
> memp.c fails to compile due to tcpip.h not providing the definition of
> struxt tcpip_msg.
>
> Adding lines to condition the use of the struct lets the compile
> proceed,
> but I am not sure if this is the right fix. See below the two code
> snippets. the #if !NO_SYS and the corresponding #endif are the added
> lines.
>
>
> 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),
> #if !NO_SYS /* don't build if not configured for use in lwipopts.h */
> sizeof(struct tcpip_msg),
> #endif
> sizeof(struct sys_timeout)
> };
>
>
>
> static u8_t memp_memory[(MEMP_NUM_PBUF *
> MEM_ALIGN_SIZE(sizeof(struct pbuf) +
> sizeof(struct memp)) +
> MEMP_NUM_RAW_PCB *
> MEM_ALIGN_SIZE(sizeof(struct raw_pcb) +
> sizeof(struct memp)) +
> MEMP_NUM_UDP_PCB *
> MEM_ALIGN_SIZE(sizeof(struct udp_pcb) +
> sizeof(struct memp)) +
> MEMP_NUM_TCP_PCB *
> MEM_ALIGN_SIZE(sizeof(struct tcp_pcb) +
> sizeof(struct memp)) +
> MEMP_NUM_TCP_PCB_LISTEN *
> MEM_ALIGN_SIZE(sizeof(struct tcp_pcb_listen) +
> sizeof(struct memp)) +
> MEMP_NUM_TCP_SEG *
> MEM_ALIGN_SIZE(sizeof(struct tcp_seg) +
> sizeof(struct memp)) +
> MEMP_NUM_NETBUF *
> MEM_ALIGN_SIZE(sizeof(struct netbuf) +
> sizeof(struct memp)) +
> MEMP_NUM_NETCONN *
> MEM_ALIGN_SIZE(sizeof(struct netconn) +
> sizeof(struct memp)) +
> MEMP_NUM_API_MSG *
> MEM_ALIGN_SIZE(sizeof(struct api_msg) +
> sizeof(struct memp)) +
> #if !NO_SYS /* don't build if not configured for use in lwipopts.h */
> MEMP_NUM_TCPIP_MSG *
> MEM_ALIGN_SIZE(sizeof(struct tcpip_msg) +
> sizeof(struct memp)) +
> #endif
> MEMP_NUM_SYS_TIMEOUT *
> MEM_ALIGN_SIZE(sizeof(struct sys_timeout) +
> sizeof(struct memp)))];
>
>
>
>
> --
> Best Regards,
> Robert
>
> Fighting SPAM with Active Spam Filter, see:
> http://a-s-k.sourceforge.net/
>
>
> _______________________________________________
> lwip-users mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/lwip-users
- [lwip-users] TCP server app, using select, mick s, 2008/05/29
- RE: [lwip-users] TCP server app, using select, Muhamad Ikhwan Ismail, 2008/05/29
- [lwip-users] Re: TCP server app, using select, mick s, 2008/05/29
- [lwip-users] memp.c with NO_SYS, robert, 2008/05/29
- RE: [lwip-users] memp.c with NO_SYS,
Bill Auerbach <=
- RE: [lwip-users] memp.c with NO_SYS, robert, 2008/05/29
- RE: [lwip-users] memp.c with NO_SYS, Bill Auerbach, 2008/05/29
- RE: [lwip-users] memp.c with NO_SYS, robert, 2008/05/29
- RE: [lwip-users] memp.c with NO_SYS, Bill Auerbach, 2008/05/29
- RE: [lwip-users] memp.c with NO_SYS, robert, 2008/05/29