X-Git-Url: http://www.dxcluster.org/gitweb/gitweb.cgi?p=spider.git;a=blobdiff_plain;f=perl%2FRoute%2FNode.pm;h=9c2b734e1b3bb867243c59a5a28b1ba37d3c577c;hp=23e293820295f6c8f4379373e8a85ae5c0481181;hb=c1540ccd7990ec4bd151604dd63583d19fe4d0f6;hpb=7a3918d750c1afaf42ab26eb89a7df9033ca9f37 diff --git a/perl/Route/Node.pm b/perl/Route/Node.pm index 23e29382..9c2b734e 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; @@ -286,7 +286,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 +371,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;