Another BSD ipv6 Patch by John Hay
authorHenning Rogge <hrogge@googlemail.com>
Thu, 26 Mar 2009 17:13:23 +0000 (18:13 +0100)
committerHenning Rogge <hrogge@googlemail.com>
Thu, 26 Mar 2009 17:13:23 +0000 (18:13 +0100)
src/bsd/kernel_routes.c

index eb08d48..17fbb20 100644 (file)
@@ -176,7 +176,9 @@ add_del_route(const struct rt_entry *rt, int add)
       memcpy(walker, sdl, sdl->sdl_len);
       walker += sdl_size;
       rtm->rtm_addrs |= RTA_GATEWAY;
+#ifdef RTF_CLONING
       rtm->rtm_flags |= RTF_CLONING;
+#endif
 #ifndef _WRS_KERNEL
       rtm->rtm_flags &= ~RTF_HOST;
 #endif
@@ -295,7 +297,7 @@ add_del_route6(const struct rt_entry *rt, int add)
 #endif
     memcpy(walker, &sin6, sizeof(sin6));
     walker += sin_size;
-    rtm->rtm_addrs = RTA_GATEWAY;
+    rtm->rtm_addrs |= RTA_GATEWAY;
   }
   else {
     /*
@@ -313,7 +315,7 @@ add_del_route6(const struct rt_entry *rt, int add)
 #endif
     memcpy(walker, &sin6, sizeof(sin6));
     walker += sin_size;
-    rtm->rtm_addrs = RTA_GATEWAY;
+    rtm->rtm_addrs |= RTA_GATEWAY;
     rtm->rtm_flags |= RTF_GATEWAY;
   }