fixs stupid bug, introduced with last code readability patches )-;
authorMarkus Kittenberger <Markus.Kittenberger@gmx.at>
Tue, 1 Sep 2009 16:33:55 +0000 (18:33 +0200)
committerMarkus Kittenberger <Markus.Kittenberger@gmx.at>
Tue, 1 Sep 2009 16:33:55 +0000 (18:33 +0200)
src/linux/kernel_routes.c

index 9977ce8..adc3e7a 100644 (file)
@@ -107,7 +107,7 @@ olsr_netlink_route_int(const struct rt_entry *rt, uint8_t family, uint8_t rttabl
   uint32_t metric = 0;
   const struct rt_nexthop *nexthop = NULL;
   if ( ( cmd != RTM_NEWRULE ) && ( cmd != RTM_DELRULE ) ) {
-    if (FIBM_FLAT != olsr_cnf->fib_metric) {
+    if (FIBM_FLAT == olsr_cnf->fib_metric) {
       metric = RT_METRIC_DEFAULT;
     }
     else {