Index: src/core/pbuf.c =================================================================== RCS file: /cvs/ecos/ecos-opt/net/net/lwip_tcpip/current/src/core/pbuf.c,v retrieving revision 1.1.10006.1 diff -u -5 -p -r1.1.10006.1 pbuf.c --- src/core/pbuf.c 14 Sep 2006 12:21:50 -0000 1.1.10006.1 +++ src/core/pbuf.c 26 Feb 2007 14:25:37 -0000 @@ -100,10 +100,13 @@ pbuf_init(void) struct pbuf *p, *q = NULL; u16_t i; pbuf_pool = (struct pbuf *)MEM_ALIGN(pbuf_pool_memory); + LWIP_ASSERT("pbuf_init: PBUF_POOL_BUFSIZE not aligned", + (PBUF_POOL_BUFSIZE % MEM_ALIGNMENT) == 0); + #if PBUF_STATS lwip_stats.pbuf.avail = PBUF_POOL_SIZE; #endif /* PBUF_STATS */ /* Set up ->next pointers to link the pbufs of the pool together */