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

Fix network interface auto detection #1126

Merged
merged 4 commits into from
Jun 5, 2021

Conversation

tperard
Copy link
Contributor

@tperard tperard commented Jun 5, 2021

That should fix the interface auto detection when NetworkManager is used.

tperard added 4 commits June 5, 2021 16:51
The check to figure out if we have the default route should be after
the for loop that parses the route attributes, to avoid acting on
incomplete information. We are going to use more fields from the
message.
Since we reset `ifid_`, clear `ifname_` as well.
When there's a new default route with higher priority, switch to it.
…tion

When an interface's state is change to "down", all the route
associated with it are deleted without an RTM_DELROUTE event.

So when this happen, reset the module to start looking for a new
external interface / default route.

Fixes Alexays#1117
@Alexays
Copy link
Owner

Alexays commented Jun 5, 2021

Thanks for all your changes!

@Alexays Alexays merged commit 9e34be7 into Alexays:master Jun 5, 2021
@tperard tperard deleted the fix-network-auto-detection branch June 8, 2021 17:59
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.

2 participants