mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-08-26 08:02:51 +00:00
instead of PBUF_ROM. This addition allows support of copy-on-demand where the lower layers can call pbuf_unref() which tests for any PBUF_REF buffers and replaces them with PBUF_POOL buffers. This is now used everywhere. pbuf_unref() is called in ARP queueing and in the coldfire driver, which puts frames on a DMA queue and frees them later. Along with this change pbuf_free() now goes through the entire chain of buffers and tests all the ref counters, not just the first one. Generally now pbuf_ref_chain() should be called and not pbuf_ref(). This change was made because it is possible for the head of the pbuf chain to have a different count than the payload pbuf which might have been passed by the application. |
||
---|---|---|
.. | ||
ipv4 | ||
ipv6 | ||
dhcp.c | ||
inet6.c | ||
inet.c | ||
mem.c | ||
memp.c | ||
netif.c | ||
pbuf.c | ||
stats.c | ||
sys.c | ||
tcp_in.c | ||
tcp_out.c | ||
tcp.c | ||
udp.c |