Skip to content

lwip: Allow several configuration macros to be set externally. #2550

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

Closed

Conversation

infinnovation-dev
Copy link
Contributor

The file lwipopts.h defines various values configuring the lwIP library. These were chosen with quite small values, presumably to allow basic functionality but with a modest RAM footprint suitable for an embedded platform.

Depending on the application or target platform, a user may wish to modify the values, for example to allow more than 4 sockets open at once, or to increase the TCP window size for greater throughput.

By enclosing the existing settings within #ifndef/#endif, tuning of the lwIP TCP/IP stack can be achieved e.g. via a "macros" clause in an mbed_app.json file, instead of requiring the user to modify the mbed-os source.

This allows tuning of the lwIP TCP/IP stack e.g. via a "macros" clause
in an mbed_app.json file, instead of requiring the user to modify the
mbed-os source.
@ciarmcom
Copy link
Member

Can one of the admins verify this patch?

@sg-
Copy link
Contributor

sg- commented Aug 25, 2016

Can comments be added to the amount of RAM a change in the defines will produce on they system?

@infinnovation-dev
Copy link
Contributor Author

Agreed, comments such as you suggest would be useful. Guess I'll need to do some experimenting.

@sg-
Copy link
Contributor

sg- commented Sep 28, 2016

@infinnovation When the investigation is done, please reopen.

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

Successfully merging this pull request may close these issues.

3 participants