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

Add support for sub-interfaces in network_helper::get_interface_ip_networks #1366

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

stormshield-gwendald
Copy link
Contributor

getifaddrs in get_interface_ip_networks will return sub-interfaces with the format <interface name>:<interface index>, but this sub-interfaces are not presented in /sys/class/net/, so this sub-interfaces are skipped in refresh_networks_addresses.

This PR fix this by overriding the sub-interfaces name with their parents interfaces name in get_interface_ip_networks.

@GuillaumeGomez
Copy link
Owner

Nice, thanks!

@GuillaumeGomez GuillaumeGomez merged commit 876c52a into GuillaumeGomez:master Oct 28, 2024
66 of 67 checks passed
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