X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FRoute%2FNode.pm;h=123f21f9f2e952d4c74a06a69ddf8c8544afa212;hb=2926213cad1fdefa202b3e50c3387a69ae5f76af;hp=23e293820295f6c8f4379373e8a85ae5c0481181;hpb=f4c54c5174d50224a745d5ed71ad1563a9440083;p=spider.git diff --git a/perl/Route/Node.pm b/perl/Route/Node.pm index 23e29382..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,7 +280,7 @@ sub new $self->{flags} = shift || Route::here(1); $self->{users} = []; $self->{nodes} = []; - $self->{PC92C_dxchan} = ''; + $self->{PC92C_dxchan} = {}; $self->reset_obs; # by definition $list{$call} = $self; @@ -371,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;