change the Hello to use default values
authorminima <minima>
Mon, 14 Feb 2005 17:52:50 +0000 (17:52 +0000)
committerminima <minima>
Mon, 14 Feb 2005 17:52:50 +0000 (17:52 +0000)
change the ROUTE to RT group

perl/AMsg.pm
perl/Aranea.pm
perl/Thingy/Hello.pm

index 6a17832253962408ade247fbae34524bf649633d..f1a7112f5c2159e735d91525358d256ee7f7a0f0 100644 (file)
@@ -71,7 +71,7 @@ sub dequeue
                                # this is the first stage that we have a callsign
                                # do we have a hello?
                                $msg =~ s/[\r\n]+$//;
-                               if ($msg =~ m{ROUTE,[0-9A-F,]+|HELLO}) {
+                               if ($msg =~ m{RT,[0-9A-F,]+|HELLO}) {
                                        # a possibly valid HELLO line, process it
                                        $conn->new_channel($msg);
                                }
@@ -127,7 +127,7 @@ sub new_client {
                        Log('Aranea', "Incoming connection from $conn->{peerhost}");
                        $conn->{outbound} = 0;
                        $conn->{state} = 'WH';          # wait for return authorize
-                       my $thing = $conn->{lastthing} = Thingy::Hello->new(origin=>$main::mycall, group=>'ROUTE');
+                       my $thing = $conn->{lastthing} = Thingy::Hello->new();
 
                        $thing->send($conn, 'Aranea');
                        dbg("-> D $conn->{peerhost} $thing->{Aranea}") if isdbg('chan');
index 3af3aee9432cd934f21f992cbd3006b3f36867a4..f3d07eaf648768682c8c59019a02bacd71bcf639 100644 (file)
@@ -55,7 +55,7 @@ sub new
        # add this node to the table, the values get filled in later
        my $pkg = shift;
        my $call = shift;
-       $main::routeroot->add($call, '5000', Route::here(1)) if $call ne $main::mycall;
+       $main::routeroot->add($call, '5251', Route::here(1)) if $call ne $main::mycall;
        $self->{'sort'} = 'W';
        return $self;
 }
index f2d2d5d1a27b7545efa203336c250dcef28fdc34..c991a901e274a1036e348be0a763efc96996cb17 100644 (file)
@@ -67,11 +67,18 @@ sub handle
                if ($dxchan->{state} ne 'normal') {
                        $dxchan->start($dxchan->{conn}->{csort}, $dxchan->{conn}->{outbound} ? 'O' : 'A');
                        if ($dxchan->{outbound}) {
-                               my $thing = Thingy::Hello->new(origin=>$main::mycall, group=>'ROUTE');
+                               my $thing = Thingy::Hello->new();
                                $thing->send($dxchan);
                        }
                }
        }
        $thing->broadcast($dxchan);
 }
+
+sub new
+{
+       my $pkg = shift;
+       my $thing = $pkg->SUPER::new(origin=>$main::mycall, group=>'RT');
+       return $thing;
+}
 1;