diff options
author | Dimitri Staessens <[email protected]> | 2018-05-29 10:01:51 +0200 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2018-05-29 10:05:47 +0200 |
commit | f634f4b0961c8fb143f3ff54ea91f32f5d412ab9 (patch) | |
tree | 3cc4504b8d586b93bc18d8c4f5f0a6efd35a33b8 | |
parent | 7171512cd4f31b3c2dc5c135bd48e278ea2e2d0d (diff) | |
download | ouroboros-f634f4b0961c8fb143f3ff54ea91f32f5d412ab9.tar.gz ouroboros-f634f4b0961c8fb143f3ff54ea91f32f5d412ab9.zip |
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 <[email protected]>
Signed-off-by: Sander Vrijders <[email protected]>
-rw-r--r-- | src/ipcpd/normal/dt.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |