X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FThingy%2FT.pm;h=cab98120a9d4275a6ac2a5e1265c0aa1a85cc489;hb=4d22d5fd3874e8292d82f84a777b99ff7d10402a;hp=d66011bdfb983aaa26179b6f4b792eae601ddc72;hpb=5764cc1c0f79b56fdf5389d2b0dcb2ab7e54723d;p=spider.git diff --git a/perl/Thingy/T.pm b/perl/Thingy/T.pm index d66011bd..cab98120 100644 --- a/perl/Thingy/T.pm +++ b/perl/Thingy/T.pm @@ -11,10 +11,8 @@ use strict; package Thingy::T; use vars qw($VERSION $BRANCH); -$VERSION = sprintf( "%d.%03d", q$Revision$ =~ /(\d+)\.(\d+)/ ); -$BRANCH = sprintf( "%d.%03d", q$Revision$ =~ /^\d+\.\d+(?:\.(\d+)\.(\d+))?$/ || (0,0)); -$main::build += $VERSION; -$main::branch += $BRANCH; + +main::mkver($VERSION = q$Revision$); use DXChannel; use DXDebug; @@ -29,8 +27,7 @@ sub gen_Aranea { my $thing = shift; unless ($thing->{Aranea}) { - my @items; - $thing->{Aranea} = Aranea::genmsg($thing, 'Rloc', @items); + $thing->{Aranea} = Aranea::genmsg($thing, [qw(d)]); } return $thing->{Aranea}; } @@ -65,7 +62,6 @@ sub from_DXProt my $k = shift; $thing->{$k} = shift; } - ($thing->{hops}) = $thing->{DXProt} =~ /\^H(\d+)\^?~?$/ if exists $thing->{DXProt}; return $thing; } @@ -77,38 +73,4 @@ sub handle $thing->broadcast($dxchan); } -sub in_filter -{ - my $thing = shift; - my $dxchan = shift; - - # global route filtering on INPUT - if ($dxchan->{inroutefilter}) { - my ($filter, $hops) = $dxchan->{inroutefilter}->it($thing->{routedata}); - unless ($filter) { - dbg("PCPROT: Rejected by input route filter") if isdbg('chanerr'); - return; - } - } - return 1; -} - -sub out_filter -{ - my $thing = shift; - my $dxchan = shift; - - # global route filtering on INPUT - if ($dxchan->{routefilter}) { - my ($filter, $hops) = $dxchan->{routefilter}->it($thing->{routedata}); - unless ($filter) { - dbg("PCPROT: Rejected by output route filter") if isdbg('chanerr'); - return; - } - $thing->{hops} = $hops if $hops; - } elsif ($dxchan->{isolate}) { - return; - } - return 1; -} 1;