summaryrefslogtreecommitdiffstats
path: root/src/rt.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2023-12-15 21:59:44 +0100
committerPhil Sutter <phil@nwl.cc>2024-01-02 18:29:51 +0100
commitd0f70a1739b8e512986fb460a7fa7ff8a9300b68 (patch)
tree82646c0718a33a06f70b73d7104710c76b121c75 /src/rt.c
parent86a496928420046e9d32317f09db050e8351b10e (diff)
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>
Diffstat (limited to 'src/rt.c')
-rw-r--r--src/rt.c2
1 files changed, 1 insertions, 1 deletions
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)