remove uneeded netlink flags/comments
authorMarkus Kittenberger <Markus.Kittenberger@gmx.at>
Thu, 22 Sep 2011 18:46:23 +0000 (20:46 +0200)
committerMarkus Kittenberger <Markus.Kittenberger@gmx.at>
Thu, 22 Sep 2011 18:46:23 +0000 (20:46 +0200)
src/linux/kernel_routes.c

index dde10a5..adfae9e 100644 (file)
@@ -290,14 +290,8 @@ int olsr_os_policy_rule(int family, int rttable, uint32_t priority, const char *
   req.r.rtm_family = family;
   req.r.rtm_table = rttable;
 
   req.r.rtm_family = family;
   req.r.rtm_table = rttable;
 
-  /* RTN_UNSPEC would be the wildcard, but blackhole broadcast or nat roules should usually not conflict */
-  /* -> olsr only adds deletes unicast routes */
-  req.r.rtm_type = RTN_UNICAST;
-
-  /* wildcard to delete routes of all protos if no simlar-delete correct proto will get set below */
-  req.r.rtm_protocol = RTPROT_UNSPEC;
-
-  req.r.rtm_scope = RT_SCOPE_UNIVERSE;
+  /* probably unneeded 
+  req.r.rtm_type = RTN_UNICAST;*/
 
   olsr_netlink_addreq(&req.n, sizeof(req), RTA_PRIORITY, &priority, sizeof(priority));
 
 
   olsr_netlink_addreq(&req.n, sizeof(req), RTA_PRIORITY, &priority, sizeof(priority));