]> git.ipfire.org Git - thirdparty/systemd.git/commit
network: accept all values provided by kernel
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 16 Nov 2021 13:50:35 +0000 (22:50 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 16 Nov 2021 23:31:24 +0000 (23:31 +0000)
commitb2174e2922aaeff32c1d842cc9285508d3fe370e
tree361d896417334131c712d4a8234b22a71c44d000
parentb049b48c4b6e60c3cbec9d2884f90fd4e7013219
network: accept all values provided by kernel

Follow-up for af493fb742bece2cafcdbab9238c711ac9090c9f.

The kernel sends FRA_SUPPRESS_IFGROUP attribute with -1, that must be
handled by networkd.

For FRA_SUPPRESS_PREFIXLEN, we already handled -1, but ignored values
larger than 128. We should not configure rules with such a meaningless
value, but should manage such rules when received from kernel. It can
occur when created by other tools mistakenly. If networkd ignores them,
then networkd cannot remove them.
src/network/networkd-routing-policy-rule.c