summaryrefslogtreecommitdiff
path: root/src/ipcpd/normal/ribmgr.c
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@intec.ugent.be>2016-11-29 11:48:17 +0100
committerSander Vrijders <sander.vrijders@intec.ugent.be>2016-11-29 13:54:21 +0100
commit60a6970f4d004a3bdaedc5af4e1581890ab9b462 (patch)
tree44149f4d89d02ebb246b4cb53414e848b320d031 /src/ipcpd/normal/ribmgr.c
parentea71b87be592fec7eb8f5ae0707503c4f0fba8be (diff)
downloadouroboros-60a6970f4d004a3bdaedc5af4e1581890ab9b462.tar.gz
ouroboros-60a6970f4d004a3bdaedc5af4e1581890ab9b462.zip
ipcpd: normal: Complete flat address policy
This will add a check in the flat address policy to see if the address is in use or not.
Diffstat (limited to 'src/ipcpd/normal/ribmgr.c')
-rw-r--r--src/ipcpd/normal/ribmgr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipcpd/normal/ribmgr.c b/src/ipcpd/normal/ribmgr.c
index 524c5a39..79422909 100644
--- a/src/ipcpd/normal/ribmgr.c
+++ b/src/ipcpd/normal/ribmgr.c
@@ -414,7 +414,7 @@ static struct rnode * ribmgr_ro_create(const char * name,
if (!(props->expiry.tv_sec == 0 &&
props->expiry.tv_nsec == 0)) {
timeout = props->expiry.tv_sec * 1000 +
- props->expiry.tv_nsec * MILLION;
+ props->expiry.tv_nsec / MILLION;
if (timerwheel_add(rib.wheel, ro_delete_timer,
new->full_name, strlen(new->full_name),
timeout)) {