]> git.ipfire.org Git - thirdparty/nftables.git/commit
datatype: rt_symbol_table_init() to search for iproute2 configs
authorPhil Sutter <phil@nwl.cc>
Fri, 15 Dec 2023 20:59:44 +0000 (21:59 +0100)
committerPhil Sutter <phil@nwl.cc>
Tue, 2 Jan 2024 17:29:51 +0000 (18:29 +0100)
commitd0f70a1739b8e512986fb460a7fa7ff8a9300b68
tree82646c0718a33a06f70b73d7104710c76b121c75
parent86a496928420046e9d32317f09db050e8351b10e
datatype: rt_symbol_table_init() to search for iproute2 configs

There is an ongoing effort among various distributions to tidy up in
/etc. The idea is to reduce contents to just what the admin manually
inserted to customize the system, anything else shall move out to /usr
(or so). The various files in /etc/iproute2 fall in that category as
they are seldomly modified.

The crux is though that iproute2 project seems not quite sure yet where
the files should go. While v6.6.0 installs them into /usr/lib/iproute2,
current mast^Wmain branch uses /usr/share/iproute2. Assume this is going
to stay as /(usr/)lib does not seem right for such files.

Note that rt_symbol_table_init() is not just used for
iproute2-maintained configs but also for connlabel.conf - so retain the
old behaviour when passed an absolute path.

Signed-off-by: Phil Sutter <phil@nwl.cc>
src/datatype.c
src/meta.c
src/rt.c