-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #36: major refactor of how vifs are probed & installed
This patch breaks out interface configuration from the config file parser to ensure mrouted does not exhaust all available kernel vifs before it knows what the user wants. - config_vifs_from_kernel() now creates a linked list of uvif's prepared to installed, with all available interface flags - config_vifs_from_file() now interacts with the new linked list disabling all interfaces with `no phyint` and enabling them on by one means is done before ... - config_vifs_correlate() runs. It's only task is to take the logical sum of probed interface (in the order provided by the getifaddrs() function, or the order in the config file) and populate the old uvifs[] array and install the vifs in kernel Signed-off-by: Joachim Wiberg <[email protected]>
- Loading branch information
Showing
4 changed files
with
260 additions
and
170 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
Oops, something went wrong.