X-Git-Url: http://www.dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXProt.pm;h=ac675f7cafefa6496064a65172c27a9a6bc32e88;hb=refs%2Fheads%2Fstaging;hp=e1b1ea45b0fc5c3b87d01fdd6c767f4d17b6ec15;hpb=7e3729a9039462c460dae4804f40c0bd506f3423;p=spider.git diff --git a/perl/DXProt.pm b/perl/DXProt.pm index e1b1ea45..ac675f7c 100644 --- a/perl/DXProt.pm +++ b/perl/DXProt.pm @@ -429,14 +429,15 @@ sub normal } } + my $origin = $self->{call}; + if (defined &Local::pcprot) { my $r; - eval { $r = Local::pcprot($self, $pcno, $line, @field); }; + eval { $r = Local::pcprot($self, $pcno, $line, $origin, \@field); }; return if $r; # i.e don't process it } # send it out for processing - my $origin = $self->{call}; no strict 'subs'; my $sub = "handle_$pcno"; @@ -1081,7 +1082,7 @@ sub get_hops { my $pcno = shift; my $hops = $DXProt::hopcount{$pcno}; - $hops = $DXProt::def_hopcount if !$hops; + $hops = $DXProt::def_hopcount unless $hops; return "H$hops"; }