Revert "specify gateway (=destination) in routes to direct neighbours, to fix problem...
authorMarkus Kittenberger <Markus.Kittenberger@gmx.at>
Sat, 21 May 2011 13:35:15 +0000 (15:35 +0200)
committerMarkus Kittenberger <Markus.Kittenberger@gmx.at>
Sat, 21 May 2011 13:35:15 +0000 (15:35 +0200)
This reverts commit e22fd2a3f95f780063a51cc1b83682463e2c9071.

src/linux/kernel_routes_nl.c

index 2807e6d..f6d36eb 100644 (file)
@@ -423,10 +423,6 @@ static int olsr_new_netlink_route(int family, int rttable, int if_index, int met
     /* add gateway */
     olsr_netlink_addreq(&req.n, sizeof(req), RTA_GATEWAY, gw, family_size);
   }
-  else {
-    /* use destination as gateway, to 'force' linux kernel to do proper source address selection */
-    olsr_netlink_addreq(&req.n, sizeof(req), RTA_GATEWAY, &dst->prefix, family_size);
-  }
 
   /* add destination */
   olsr_netlink_addreq(&req.n, sizeof(req), RTA_DST, &dst->prefix, family_size);