From f634f4b0961c8fb143f3ff54ea91f32f5d412ab9 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Tue, 29 May 2018 10:01:51 +0200 Subject: ipcpd: Add address to DT directory name in RIB This adds the address to the DT directory name in the RIB. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/ipcpd/normal/dt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/ipcpd/normal') diff --git a/src/ipcpd/normal/dt.c b/src/ipcpd/normal/dt.c index da03d9b8..9ab16460 100644 --- a/src/ipcpd/normal/dt.c +++ b/src/ipcpd/normal/dt.c @@ -543,6 +543,7 @@ int dt_init(enum pol_routing pr, { int i; int j; + char dtstr[256]; struct conn_info info; memset(&info, 0, sizeof(info)); @@ -612,7 +613,8 @@ int dt_init(enum pol_routing pr, dt.n_flows = 0; #endif - if (rib_reg(DT, &r_ops)) + sprintf(dtstr, "%s.%" PRIu64, DT, ipcpi.dt_addr); + if (rib_reg(dtstr, &r_ops)) goto fail_rib_reg; return 0; -- cgit v1.2.3