Skip to content

Conversation

kamendov-maxim
Copy link

Due to structure of arp request and reply answer it is possible to save some memory and use same pbuf for reply as was used in request. I have rewritten etharp_input function and added LWIP_ARP_REUSE_MEMORY macro to opts so it is still possible to use the old version
Description from opts.h:

/** LWIP_ARP_REUSE_MEMORY==1: Reuse pbuf used for arp request to send an
 * arp reply as described in RFC 826.
 * If disabled, new pbuf will be allocated and all required data from request
 * packet will be copied with SMEMCPY (better if you want to separate layers
 * but worse in terms of memory usage)
 */

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant