X-Git-Url: http://www.dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXProt.pm;h=118743e1f23ff03e5da83279c3c90ba8086b90ef;hb=31fca8dfb43587fe8f7b6bb657bfa654e7a8566b;hp=3ef7b0750e3695a878f11da518d3ae10ba6ca930;hpb=169940ee254d0a1a014a62dae12a8fbebc4e2fda;p=spider.git diff --git a/perl/DXProt.pm b/perl/DXProt.pm index 3ef7b075..118743e1 100644 --- a/perl/DXProt.pm +++ b/perl/DXProt.pm @@ -645,7 +645,11 @@ sub normal # if there is a parent, proceed, otherwise if there is a latent PC19 in the PC19list, # fix it up in the routing tables and issue it forth before the PC16 unless ($parent) { - if (my ($nl = $pc19list{$ncall}) && @field > 2) { + my $nl = $pc19list{$ncall}; + + delete $pc19list{$ncall} if $nl; # whatever happens - it goes + + if ($nl && @field > 3) { # 3 because of the hop count! # this is a new (remembered) node, now attach it to me if it isn't in filtered # and we haven't disallowed it @@ -659,8 +663,6 @@ sub normal $user->node($ncall); } - delete $pc19list{$ncall}; # whatever happens - it goes - my $wantpc19 = $user->wantroutepc19; if ($wantpc19 || !defined $wantpc19) { my $new = Route->new($ncall); # throw away