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 compile error (IDFGH-1655) #3902

Closed
chegewara opened this issue Aug 9, 2019 · 6 comments
Closed

lwip compile error (IDFGH-1655) #3902

chegewara opened this issue Aug 9, 2019 · 6 comments

Comments

@chegewara
Copy link
Contributor

In menuconfig disabling this option:
LWIP->TCP->Queue incoming out-of-order segments (CONFIG_TCP_QUEUE_OOSEQ)
causes this error:

components/lwip/lwip/src/core/pbuf.c: In function 'pbuf_free':
components/lwip/lwip/src/core/pbuf.c:792:29: error: dereferencing pointer to incomplete type 'struct netif'
               && p->l2_owner->l2_buffer_free_notify != NULL) {

esp-idf version: v3.2

@github-actions github-actions bot changed the title lwip compile error lwip compile error (IDFGH-1655) Aug 9, 2019
@joedeveloper
Copy link
Contributor

Similar situation on commit 6ccb4cf (HEAD, tag: v3.3)

@freakyxue
Copy link
Collaborator

@chegewara

We will debug the problem as soon as possible

@vikramvel
Copy link

Hi, I am facing the same error.
Is this issue has been fixed ?

@freakyxue
Copy link
Collaborator

@vikramvel @chegewara @joedeveloper
I'm sorry I didn't reply in time.
I found the root cause.
In the pbuf. c file,add lwip/netif.h.such as:
#include "lwip/netif.h"

@kangg18
Copy link

kangg18 commented May 27, 2020

function signature might be miss typed in lwip/netif.h

void (*l2_buffer_free_notify)(void *user_buf)
===>
void (*l2_buffer_free_notify)(struct netif *netif,void *user_buf)

this function might be related to pppos and ip forward functional in NAPT function

@Alvin1Zhang
Copy link
Collaborator

Sorry for replying late, the fix has been available at db38a4e, feel free to reopen if the issue still happens. Thanks.

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

No branches or pull requests

6 participants