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

Update reading of iproute2 config files to handle new locations #2487

Merged
merged 8 commits into from
Oct 28, 2024

Conversation

pqarmitage
Copy link
Collaborator

No description provided.

Since iproute2 version 3.3 the location of the config files has
been configurable, with the default being /etc/iproute2. Since
version 4.4 there has been an rt_tables.d sub-directory. Version
4.10 added an rt_protos.d sub-directory, and version 6.5 added
a second directory (/usr/lib/iproute2 or /usr/lib64/iproute)
which 6.7 changed to /usr/share/iproute2 as the default.

No major distro appears to change the default locations, and the
only distro that used verion 6.5 or 6.6 was Fedora 40, but that
has now upgraded to 6.7 so we are not bothered with the /usr/lib*
options.

The two directories have configure options, and if they are not
specified, configure attempts to get the locations from the
ip-route man page or the ip executable.

Signed-off-by: Quentin Armitage <[email protected]>
This is similar to being able to specify a protocol of ip routes
and rules.

Signed-off-by: Quentin Armitage <[email protected]>
If there is no keepalived entry in rt_addrprotos create an entry
which is removed when keepalived terminates. This will allow
ip address show to display the protocol of an address as
"keepalived" rather than 0x12.

Signed-off-by: Quentin Armitage <[email protected]>
Signed-off-by: Quentin Armitage <[email protected]>
@pqarmitage pqarmitage merged commit f5beb00 into acassen:master Oct 28, 2024
10 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.

1 participant