X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=perl%2FRoute%2FNode.pm;h=123f21f9f2e952d4c74a06a69ddf8c8544afa212;hb=64461bf14f8ce1a;hp=6e7d931541c89d48722085be2c8363848e640b93;hpb=93292dcd622b1505d2cbab334277c89e7c8afd27;p=spider.git diff --git a/perl/Route/Node.pm b/perl/Route/Node.pm index 6e7d9315..123f21f9 100644 --- a/perl/Route/Node.pm +++ b/perl/Route/Node.pm @@ -32,7 +32,7 @@ use vars qw(%list %valid @ISA $max $filterdef $obscount); via_pc92 => '0,Came in via pc92,yesno', obscount => '0,Obscount', last_PC92C => '9,Last PC92C', - PC92C_dxchan => '9,Channel of PC92C', + PC92C_dxchan => '9,Channel of PC92C,phash', ); $filterdef = $Route::filterdef; @@ -221,12 +221,6 @@ sub nodes return @{$self->{nodes}}; } -sub parents -{ - my $self = shift; - return @{$self->{parent}}; -} - sub rnodes { my $self = shift; @@ -286,8 +280,7 @@ sub new $self->{flags} = shift || Route::here(1); $self->{users} = []; $self->{nodes} = []; - $self->{lastid} = 0; - $self->{PC92C_dxchan} = ''; + $self->{PC92C_dxchan} = {}; $self->reset_obs; # by definition $list{$call} = $self; @@ -372,6 +365,19 @@ sub measure_pc9x_t } } +sub PC92C_dxchan +{ + my $parent = shift; + my $call = shift; + my $hops = shift; + if ($call && $hops) { + $hops =~ s/^H//; + $parent->{PC92C_dxchan}->{$call} = $hops; + return; + } + return (%{$parent->{PC92C_dxchan}}); +} + sub DESTROY { my $self = shift;