summaryrefslogtreecommitdiff
path: root/src/ipcpd/normal/dt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipcpd/normal/dt.c')
-rw-r--r--src/ipcpd/normal/dt.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/ipcpd/normal/dt.c b/src/ipcpd/normal/dt.c
index 33070fa2..b22fb59c 100644
--- a/src/ipcpd/normal/dt.c
+++ b/src/ipcpd/normal/dt.c
@@ -143,6 +143,13 @@ int dt_init(void)
int i;
int j;
struct conn_info info;
+ enum pol_routing pr;
+
+ if (rib_read(BOOT_PATH "/dt/routing/type", &pr, sizeof(pr))
+ != sizeof(pr)) {
+ log_err("Failed to read policy for routing.");
+ return -1;
+ }
if (dt_pci_init()) {
log_err("Failed to init shm dt_pci.");
@@ -175,7 +182,7 @@ int dt_init(void)
goto fail_nbs;
}
- if (routing_init(dt.nbs)) {
+ if (routing_init(pr, dt.nbs)) {
log_err("Failed to init routing.");
goto fail_nbs_notifier;
}