summaryrefslogtreecommitdiff
path: root/src/ipcpd/normal/fmgr.c
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@ugent.be>2017-03-27 14:12:41 +0200
committerSander Vrijders <sander.vrijders@ugent.be>2017-03-28 10:26:07 +0200
commit48f12c6466c14f51bc3a2bba9b06772207e9ef33 (patch)
treeee3ce3895efd46f83549676c14046029cff0d567 /src/ipcpd/normal/fmgr.c
parentad6a813edab5a14866b045d37fe2ce7e1f9a126d (diff)
downloadouroboros-48f12c6466c14f51bc3a2bba9b06772207e9ef33.tar.gz
ouroboros-48f12c6466c14f51bc3a2bba9b06772207e9ef33.zip
ipcpd: normal: Call shm_pci_init on fmgr init
The shm PCI was never initialized during flow manager init. This commit will do that, and initialize the pdu length correctly as well, since it was not being written into the RIB, nor read in shm_pci_init.
Diffstat (limited to 'src/ipcpd/normal/fmgr.c')
-rw-r--r--src/ipcpd/normal/fmgr.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ipcpd/normal/fmgr.c b/src/ipcpd/normal/fmgr.c
index f78d390a..5a1bd842 100644
--- a/src/ipcpd/normal/fmgr.c
+++ b/src/ipcpd/normal/fmgr.c
@@ -296,6 +296,12 @@ int fmgr_init(void)
}
}
+ if (shm_pci_init()) {
+ log_err("Failed to init shm pci.");
+ fmgr_destroy_flows();
+ return -1;
+ }
+
memset(&info, 0, sizeof(info));
strcpy(info.ae_name, DT_AE);