Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARP: add more memory efficient way of handling arp requests #40

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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