-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
linux: add policy routing config flag #81415
Conversation
25d3a44
to
cf3cbff
Compare
Note: successfully calling |
cf3cbff
to
c98d1ec
Compare
Currently testing #81405 with this PR. It doesn't work... Though:
I'm waiting on a new build+test with that set. |
Damned, missed that dependency. Thanks for running the tests! |
c98d1ec
to
1e27857
Compare
CONFIG_IP_MULTIPLE_TABLES is part of the default x86 kernel config but absent from the Aarch64 one. Adding explicitely this flag together with its dependency IP_ADVANCED_ROUTER. Both of these config flags are needed to use the routing policy facilities.
1e27857
to
6896b1c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With IP_ADVANCED_ROUTER = yes
the test passes.
With IP_ADVANCED_ROUTER = yes the test passes.
Nice!
I added the option to this PR. We should be able to merge as soon as Hydra finish to rebuild the whole world.
|
Thanks! |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/ip-rule-address-family-not-supported-by-protocol/3166/3 |
Motivation for this change
Continuation of #81405 (comment)
CONFIG_IP_MULTIPLE_TABLES
is part of the default x86 kernel config butabsent from the Aarch64 one. Adding this flag on the aarch64 config to
align it with the x86.
I did not use any
option
guard here: it seem like this flag is supported since Linux 2.5.45 https://cateee.net/lkddb/web-lkddb/IP_MULTIPLE_TABLES.htmlDisclaimer: I do not have access to a aarch64 machine to try this out + I don't really know what I'm doing.
CC @samueldr
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)Fixes #61602