smartalock / wireguard-lwip

WireGuard Implementation for lwIP
Other
192 stars 29 forks source link

Problem with wireguard-lwip on esp32C3 using esp-if latest version (5.0), is it possible to work on this version ? #8

Open Odysseusfr opened 1 year ago

Odysseusfr commented 1 year ago

I can't implement this library on my esp-idf version, in the goal to create a wireguard client.

uGiFarukh commented 1 year ago

What error message are you getting while trying to compile?

Odysseusfr commented 1 year ago

I think it was about the esp-idf version, using the 4.4.1 it works better.

Odysseusfr commented 1 year ago

Wich lwIP version is supported ?

Odysseusfr commented 1 year ago

It seems that the function netif_add is not working anymore, especially in the &wireguardif_init parameter, what can we do instead ?

ShaLauTie commented 1 year ago

At least lwip 2-1-0 , which implements the bind functions for pcb

amaldo commented 1 year ago

I think this is the same issue that has a fix here: https://github.com/trombik/esp_wireguard/issues/33#issuecomment-1568503651

@Odysseusfr Could you try if activating CONFIG_LWIP_PPP_SUPPORT using "idf.py menuconfig" fixes the crash?

Odysseusfr commented 1 year ago

Hey, I tried it and it worked, so yes it's working with that config activated. I was able to use the demo code in the latest esp-idf version.