diff options
author | Dimitri Staessens <dimitri.staessens@ugent.be> | 2018-05-29 10:01:51 +0200 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@ugent.be> | 2018-05-29 10:05:47 +0200 |
commit | f634f4b0961c8fb143f3ff54ea91f32f5d412ab9 (patch) | |
tree | 3cc4504b8d586b93bc18d8c4f5f0a6efd35a33b8 /src | |
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 <dimitri.staessens@ugent.be>
Signed-off-by: Sander Vrijders <sander.vrijders@ugent.be>
Diffstat (limited to 'src')
-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; |