try to fix protocol version
authorminima <minima>
Fri, 11 Mar 2005 21:25:17 +0000 (21:25 +0000)
committerminima <minima>
Fri, 11 Mar 2005 21:25:17 +0000 (21:25 +0000)
perl/DXProt.pm
perl/DXProtVars.pm
perl/DXProtout.pm
perl/cluster.pl

index 3001d6eb1b3cb8a9c4f7fe894ff3cf2ec5ae8115..cc468cd54409a0e6cfb3b103aab3187d235baf2b 100644 (file)
@@ -214,7 +214,6 @@ sub init
        my $user = DXUser->get($main::mycall);
        die "User $main::mycall not setup or disappeared RTFM" unless $user;
        
-       $myprot_version += $main::version*100;
        $main::me = DXProt->new($main::mycall, 0, $user); 
        $main::me->{here} = 1;
        $main::me->{state} = "indifferent";
@@ -223,7 +222,7 @@ sub init
        $main::me->{metric} = 0;
        $main::me->{pingave} = 0;
        $main::me->{registered} = 1;
-       $main::me->{version} = 5252 + $main::version;
+       $main::me->{version} = $myprot_version + int ($main::version * 100);
        $main::me->{build} = $main::build;
        $main::me->{lastcf} = $main::me->{lasthello} = time;
 }
@@ -1107,8 +1106,7 @@ sub handle_20
        my $thing = Thingy::Rt->new(user=>$self->{call});
        my $nref = Route::Node::get($self->{call});
        $thing->copy_pc16_data($nref);
-       $thing->broadcast;
-       
+       $thing->broadcast($self);
        $self->lastcf($main::systime);
 }
                
@@ -1199,7 +1197,7 @@ sub handle_22
        my $thing = Thingy::Rt->new(user=>$self->{call});
        my $nref = Route::Node::get($self->{call});
        $thing->copy_pc16_data($nref);
-       $thing->broadcast;
+       $thing->broadcast($self);
        $self->lastcf($main::systime);
 }
                                
index 98fd201fe0cf07a20f2bd6168a1bff4fd5d89c9d..05f02bb70cba567105350d86f386b422d0ab0e2b 100644 (file)
@@ -15,7 +15,7 @@ package DXProt;
 $pc50_interval = 14*60;
 
 # the version of DX cluster (tm) software I am masquerading as
-$myprot_version = 5251;
+$myprot_version = 5252;
 
 # default hopcount to use
 $def_hopcount = 30;
index 508710d0ce5994dcb26b4b1a38f000ce9926b265..04eefe39b1e1d9d0446b757de619d8b6e4eba1bd 100644 (file)
@@ -121,7 +121,7 @@ sub pc17
 # Request init string
 sub pc18
 {
-       my $v = $DXProt::myprot_version + $main::version;
+       my $v = $DXProt::myprot_version + int($main::version * 100);
        return "PC18^DXSpider Version: $main::version Build: $main::build^$v^";
 }
 
index 1f225b592862c76e217ca6bc8e9f39082e1cf9fb..af1fe2e70cc26e8abd6f08b8b7b9accdf9269029 100755 (executable)
@@ -267,7 +267,7 @@ DXProt->init();
 Aranea->init();
 
 # put in a DXCluster node for us here so we can add users and take them away
-$routeroot = Route::Node->new($mycall, $version*100+5252, $main::me->here);
+$routeroot = Route::Node->new($mycall, int($version*100)+$DXProt::myprot_version, $main::me->here);
 
 # make sure that there is a routing OUTPUT node default file
 #unless (Filter::read_in('route', 'node_default', 0)) {