LwIP: Rework code to use all of libcoap capabilities #884
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Update examples/lwip directory to make it more standalone.
Available directories under examples/lwip/
config/ Contains LwiP + CoAP configuration files
libcoap/ Link to the libcoap tree
lwip/ The LwIP tree
lwip-contrib/ The LwIP contrib tree (obsoleted in LwIP master branch)
src/ Local modifications to LwIP
tinydtls/ Link to the TinyDTLS tree
New files to contain the headers for the appropriate build types, with most
of the #include removed from the other *.[ch] files.
App visibility (selected by build type)
include/coap3/coap_include_contiki.h
include/coap3/coap_include_lwip.h
include/coap3/coap_include_posix.h
include/coap3/coap_include_windows.h
library visibility (Can have tests for include files etc.)
include/coap3/coap_include_contiki_internal.h
include/coap3/coap_include_lwip_internal.h
include/coap3/coap_include_posix_internal.h
include/coap3/coap_include_windows_internal.h
mem.[ch] renamed to coap_mem.[ch] to prevent build name clashes.
Changed NO_SYS to 0, and so now accept() is renamed to lwip_accept(), socket()
is renamed to lwip_socket() etc.
Add in TinyDTLS support for packet encryption.
Removed a lot of the WITH_LWIP protected code as it is now redundant.
Removed LwIP specific files no longer in use.
Uses the tap interface to interface with Linux, each new application will
use the next available tap interface. tap interfaces can be pre-configured
and used.
Addresses issues #18, #59, #61, #63, #334, #403, #520, #526, #527, #528, #529 and #591