Better name, show probed MTU in dump.
[tinc] / src / graph.c
index d07dd68..757210c 100644 (file)
@@ -17,7 +17,7 @@
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-    $Id: graph.c,v 1.1.2.31 2003/12/20 19:47:52 guus Exp $
+    $Id: graph.c,v 1.1.2.33 2003/12/20 21:25:17 guus Exp $
 */
 
 /* We need to generate two trees from the graph:
@@ -230,8 +230,10 @@ void sssp_bfs(void)
                                        e->to->hostname = sockaddr2hostname(&e->to->address);
                                        avl_insert_node(node_udp_tree, node);
 
-                                       if(e->to->options & OPTION_DONTFRAGMENT) {
+                                       if(e->to->options & OPTION_PMTU_DISCOVERY) {
+                                               e->to->mtu = MTU;
                                                e->to->mtuprobes = 0;
+                                               e->to->probedmtu = 0;
                                                if(e->to->status.validkey)
                                                        send_mtu_probe(e->to);
                                        }