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

LwIP: Rework code to use all of libcoap capabilities #884

Closed
wants to merge 1 commit into from

Conversation

mrdeep1
Copy link
Collaborator

@mrdeep1 mrdeep1 commented Jul 23, 2022

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

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.
@mrdeep1
Copy link
Collaborator Author

mrdeep1 commented Sep 9, 2022

Likely to be superseded by #926.

@mrdeep1
Copy link
Collaborator Author

mrdeep1 commented Oct 10, 2022

Superseded by #939

@mrdeep1 mrdeep1 closed this Oct 10, 2022
@mrdeep1 mrdeep1 deleted the lwip_rework branch January 16, 2023 09:34
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