From d0f70a1739b8e512986fb460a7fa7ff8a9300b68 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Fri, 15 Dec 2023 21:59:44 +0100 Subject: 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 --- src/rt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rt.c') diff --git a/src/rt.c b/src/rt.c index f5c80559..3ee710dd 100644 --- a/src/rt.c +++ b/src/rt.c @@ -25,7 +25,7 @@ void realm_table_rt_init(struct nft_ctx *ctx) { - ctx->output.tbl.realm = rt_symbol_table_init("/etc/iproute2/rt_realms"); + ctx->output.tbl.realm = rt_symbol_table_init("rt_realms"); } void realm_table_rt_exit(struct nft_ctx *ctx) -- cgit v1.2.3