This repository has been archived by the owner on Sep 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
transport: use new InterfaceStateManager
https://jira.prplfoundation.org/browse/PPM-18 Use the InterfaceStateManager class in the ieee1905_transport process as a new mechanism to read and detect changes in the state of the network interfaces. Existing code in `ieee1905_transport_netlink.cpp` is deprecated and will be removed in next commit. InterfaceStateManager uses interface names. Since we should use interface names everywhere rather than interface indexes (because interfaces are not renamed while prplMesh is running and conversely, indexes can change, and because names are easier to debug than indexes), modify existing code to favor names over indexes. BTW, this change also fixes a bug in calls to `handle_interface_status_change` that use a file descriptor when they shall be using an interface index. Signed-off-by: Mario Maz <[email protected]>
- Loading branch information
Showing
5 changed files
with
135 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.