delete dummy policy rule
authorMarkus Kittenberger <Markus.Kittenberger@gmx.at>
Sat, 13 Jun 2009 10:38:00 +0000 (12:38 +0200)
committerMarkus Kittenberger <Markus.Kittenberger@gmx.at>
Sat, 13 Jun 2009 10:38:00 +0000 (12:38 +0200)
src/main.c

index 499d900..4c9f161 100644 (file)
@@ -527,6 +527,10 @@ olsr_shutdown(void)
   CLOSESOCKET(olsr_cnf->ioctl_s);
 
 #if defined linux
+  if ((olsr_cnf->rttable < 253) & (olsr_cnf->rttable > 0)) {
+    olsr_netlink_rule(olsr_cnf->ip_version, olsr_cnf->rttable, RTM_DELRULE);
+  }
+
   CLOSESOCKET(olsr_cnf->rts_linux);
 #endif