From: Guus Sliepen Date: Wed, 4 Sep 2002 08:48:03 +0000 (+0000) Subject: Just ignore wrong ADD_NODEs instead of replying with a DEL_NODE, in the X-Git-Tag: release-1.0pre8~33 X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=commitdiff_plain;h=973530db628fb91106d6fb7a17151e1d036e40a2 Just ignore wrong ADD_NODEs instead of replying with a DEL_NODE, in the hope other DEL_NODEs will catch up eventually. --- diff --git a/src/protocol_node.c b/src/protocol_node.c index c27f254d..758b1eaa 100644 --- a/src/protocol_node.c +++ b/src/protocol_node.c @@ -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: protocol_node.c,v 1.1.4.5 2002/09/04 08:33:08 guus Exp $ + $Id: protocol_node.c,v 1.1.4.6 2002/09/04 08:48:03 guus Exp $ */ #include "config.h" @@ -133,7 +133,7 @@ cp if(prevhop == myself) { syslog(LOG_WARNING, _("Got ADD_NODE %s prevhop %s via %s from %s, sending back a DEL_NODE!"), name, prevhopname, vianame, c->name); - send_del_node(c, n); + // send_del_node(c, n); return 0; } n->status.reachable = 1; @@ -146,7 +146,7 @@ cp if(prevhop == myself) { syslog(LOG_WARNING, _("Got ADD_NODE %s prevhop %s via %s from %s!"), name, prevhopname, vianame, c->name); - send_del_node(c, n); + // send_del_node(c, n); return 0; } node = avl_unlink(node_udp_tree, n); @@ -223,7 +223,7 @@ cp /* If we got a DEL_NODE but we know of a different route to it, tell the one who send the DEL_NODE */ - if(n->nexthop != c->node || n->prevhop != prevhop) + if(n->nexthop != c->node) { return send_add_node(c, n); }