Use a simple Random Early Drop algorithm in send_tcppacket().
[tinc] / src / graph.c
index 1f00660..e0c48d4 100644 (file)
@@ -1,6 +1,6 @@
 /*
     graph.c -- graph algorithms
-    Copyright (C) 2001-2006 Guus Sliepen <guus@tinc-vpn.org>,
+    Copyright (C) 2001-2009 Guus Sliepen <guus@tinc-vpn.org>,
                   2001-2005 Ivo Timmermans
 
     This program is free software; you can redistribute it and/or modify
@@ -313,6 +313,7 @@ void sssp_bfs(void)
 
 void graph(void)
 {
+       subnet_cache_flush();
        sssp_bfs();
        mst_kruskal();
        graph_changed = true;