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

[examples]: Test the SLIP netif example on target as well #762

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

david-cermak
Copy link
Collaborator

@david-cermak david-cermak commented Feb 12, 2025

Problem

  • esp_netiff by default uses lwip's netif->state to store it's internal data
  • some non-typical lwip netifs also use this to store internal data (PPP, bridge, wireguard port)

Solution

  • to address this properly we need to fix esp_netif to either keep this reserved or add a Kconfig option to set NETIF_DATA -- will fix in IDF-12473

  • here we provide a workaround to enable PPP netif to force esp_netif not to use the state field

  • also adds target test

  • Closes slip_custom_netif demo not working #759

@david-cermak david-cermak self-assigned this Feb 12, 2025
@david-cermak david-cermak force-pushed the fix/examples_target_tests branch 4 times, most recently from 61b18ba to ea5fd6d Compare February 12, 2025 16:26
…etif

by enabling PPP netif, so esp_netif knows that lwip's netif->state
will be reserved for special netif info (slip)

Closes espressif#759
needs: build_all_examples
strategy:
matrix:
idf_ver: ["release-v5.3", "latest"]
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

run on v5.4, too

Suggested change
idf_ver: ["release-v5.3", "latest"]
idf_ver: ["release-v5.3", "release-v5.4", "latest"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

slip_custom_netif demo not working
1 participant