fbsd: bugfix for non-vxworks host routes
authorSven-Ola Tuecke <sven-ola@gmx.de>
Sun, 18 Jan 2009 18:57:35 +0000 (19:57 +0100)
committerSven-Ola Tuecke <sven-ola@gmx.de>
Sun, 18 Jan 2009 18:57:35 +0000 (19:57 +0100)
src/bsd/kernel_routes.c

index 9b9407c..eb08d48 100644 (file)
@@ -177,6 +177,9 @@ add_del_route(const struct rt_entry *rt, int add)
       walker += sdl_size;
       rtm->rtm_addrs |= RTA_GATEWAY;
       rtm->rtm_flags |= RTF_CLONING;
+#ifndef _WRS_KERNEL
+      rtm->rtm_flags &= ~RTF_HOST;
+#endif
       freeifaddrs(addrs);
     }
 #ifdef _WRS_KERNEL