lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] [lwip] LWIP Memory Buffers And Allocators


From: John C. Toman
Subject: [lwip-users] [lwip] LWIP Memory Buffers And Allocators
Date: Wed, 08 Jan 2003 22:17:13 -0000

Hello,

I'm in the process of porting the lwIP (currently 0.4.2 pending the 0.5 
release) to the Rabbit 2000 using the Softools ANSI C compiler. The 
lwipopts.h has options which control memory pools in three different .c 
files. There also appear to be three different types of allocators: 
memp, mem, and pbuf. What are the differences between these? I 
understand that a pbuf is a packet buffer, but what are the roles of the 
other two? There are two reasons for asking these questions. The first 
is so I have a better understanding of how the code is structured. The 
second is so that I understand the ramifications of modifying the 
default values in the test lwipopts.h file, which allocates more memory 
than is probably suitable for the architecture I'm porting to.

This seems to be a very well organized stack by the way. I just got 
through with a port of old K&R C WATTCP code which has a few more bells 
and whistles but is disorganized and has license issues ...

Thanks,

John

[This message was sent through the lwip discussion list.]




reply via email to

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