wireguard-lwip icon indicating copy to clipboard operation
wireguard-lwip copied to clipboard

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

Open Odysseusfr opened this issue 2 years ago • 7 comments

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

Odysseusfr avatar Feb 07 '23 11:02 Odysseusfr

What error message are you getting while trying to compile?

uGiFarukh avatar Feb 07 '23 13:02 uGiFarukh

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

Odysseusfr avatar Feb 07 '23 14:02 Odysseusfr

Wich lwIP version is supported ?

Odysseusfr avatar Feb 08 '23 13:02 Odysseusfr

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

Odysseusfr avatar Feb 10 '23 11:02 Odysseusfr

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

ShaLauTie avatar Jun 01 '23 06:06 ShaLauTie

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?

amaldo avatar Jun 01 '23 18:06 amaldo

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.

Odysseusfr avatar Jun 02 '23 07:06 Odysseusfr