Use correct RTM flags while deleting an IPv6 route on BSD. 36/head
authorStefan Sperling <stsp@stsp.name>
Fri, 23 Jun 2017 08:02:55 +0000 (10:02 +0200)
committerStefan Sperling <stsp@stsp.name>
Fri, 23 Jun 2017 08:02:55 +0000 (10:02 +0200)
Same problem as fixed for IPv4 in 65978bd6996c8f62ac3f0adf971692fc8f2dc9cb.
I forgot to include the IPv6 code path in that commit.

Signed-off-by: Stefan Sperling <stsp@stsp.name>
src/bsd/kernel_routes.c

index 4a6d97e..462aa83 100644 (file)
@@ -394,7 +394,7 @@ add_del_route6(const struct rt_entry *rt, int add)
     drtm->rtm_version = RTM_VERSION;
     drtm->rtm_type = RTM_DELETE;
     drtm->rtm_index = 0;
-    drtm->rtm_flags = olsr_rt_flags(rt, add);
+    drtm->rtm_flags = olsr_rt_flags(rt, 0);
     drtm->rtm_seq = ++seq;
 
     walker = dbuff + sizeof(struct rt_msghdr);