Skip to content

Keep lwIP netif persistent across lifecycle transitions#411

Open
amit-warbhe wants to merge 1 commit intoeclipse-openbsw:mainfrom
esrlabs:cr-187388
Open

Keep lwIP netif persistent across lifecycle transitions#411
amit-warbhe wants to merge 1 commit intoeclipse-openbsw:mainfrom
esrlabs:cr-187388

Conversation

@amit-warbhe
Copy link
Copy Markdown
Contributor

Keep lwIP netif persistent across lifecycle transitions

After Lifecycle transition 9 → 4 → 9, UDP multicast join failed with:
igmp_joingroup failed with status -6
because EthernetSystem::init() was only executed once during system lifetime,
while run() is re-executed after lifecycle restart.

Network interface configuration was performed inside init().
During LC restart (4 → 9), init() was not called again, therefore
the lwIP netif was not properly reconfigured.

Moving all netif-specific configuration and activation logic into run() solves the issue.

After Lifecycle transition 9 → 4 → 9, UDP multicast join failed with:
igmp_joingroup failed with status -6
because EthernetSystem::init() was only executed once during system lifetime,
while run() is re-executed after lifecycle restart.

Network interface configuration was performed inside init().
During LC restart (4 → 9), init() was not called again, therefore
the lwIP netif was not properly reconfigured.

Moving all netif-specific configuration and activation logic into run() solves the issue.
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

Successfully merging this pull request may close these issues.

1 participant