camkes
camkes copied to clipboard
ridale/lwip
This project uses the ethdriver global component and liblwip to provide a UDP echo server.
It was taken, in part from the camkes-apps-ethernet-demo-x86--devel but currently only works with EthdriverARMPlat as I pulled the x86 camkes #defs during debugging.
It would be reasonable to push the eth_interface.c code into a lwipserver similar to the picoserver global component. I could not however figure out a clean interface for binding traffic handlers to the interface between an app component and the any global lwipserver component.
I am happy to be directed on how this should look.
Hi @ridale, thanks for raising the PR. Is there an expected way for providing <lwip/lwipopts.h>
to the server component?
I could not however figure out a clean interface for binding traffic handlers to the interface between an app component and the any global lwipserver component.
We could leave this as an example of an application that links an lwip instance into itself. Then you could use it in a system where the ethdriver component presents multiple ethernet MAC adresses with each client component having a separate, isolated networking stack?
Hi @kent-mcleod sorry about the delay been working on getting the USB stack to work on sabre. I put an lwipopts.h that is generic and minimal into the lwip src/include directory for my work, in https://github.com/ridale/util_libs/tree/ridale/lwip
happy to leave this as is as an example.
Sorry this is an old pull request that I am getting to work again with the newer version of seL4 and probably doesn't warrant reviewing at the moment. It builds but I have not tested it on hardware and will not be able to for some time.
If you would like you can close this pull request and I will reopen it if I get a chance to look at it again.
I understand from one of your issue reports https://github.com/seL4/util_libs/issues/68 that you would like to pull lwip support, there are the same problems with cached dma in the camkes global component code as well. I think that is one of my other pull requests.
I've set the PR as draft to mark that you're intending further work, so we can leave it open for now.