fix here so that it is either on or off and remove all the Route::here
authorminima <minima>
Thu, 24 Feb 2005 13:30:51 +0000 (13:30 +0000)
committerminima <minima>
Thu, 24 Feb 2005 13:30:51 +0000 (13:30 +0000)
and Route::conf stuff

perl/DXCommandmode.pm
perl/DXProt.pm
perl/Route.pm
perl/cluster.pl

index 72144d91ea2f302b65a03552cd9728f94797c96c..753f59f79e4788e5211c77353c3d891de8b38789 100644 (file)
@@ -68,7 +68,7 @@ sub new
        # routing, this must go out here to prevent race condx
        my $pkg = shift;
        my $call = shift;
-       my @rout = $main::routeroot->add_user($call, Route::here(1));
+       my @rout = $main::routeroot->add_user($call, 1);
 
        
        my $ref = Route::User::get($call);
index f00a436adea5184da5c1e5f9ac79fd4e62ebd5bb..595cfae8246a64d4d7713bb2433a5bdb3940a54c 100644 (file)
@@ -239,7 +239,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, '5000', 1) if $call ne $main::mycall;
        return $self;
 }
 
@@ -811,7 +811,7 @@ sub handle_16
                }
                
                $r = Route::User::get($call);
-               my $flags = Route::here($here)|Route::conf($conf);
+               my $flags = $here;
                
                if ($r) {
                        my $au = $r->addparent($parent);                                        
@@ -970,7 +970,7 @@ sub handle_19
        if ($origin ne $self->call) {
                my $op = Route::Node::get($origin);
                unless ($op) {
-                       $op = $parent->add($origin, 5000, Route::here(1));
+                       $op = $parent->add($origin, 5000, 1);
                        my $user = DXUser->get_current($origin);
                        if (!$user) {
                                $user = DXUser->new($origin);
@@ -1044,7 +1044,7 @@ sub handle_19
                }
 
                my $r = Route::Node::get($call);
-               my $flags = Route::here($here)|Route::conf($conf);
+               my $flags = $here;
 
                # is he under the control of the new protocol?
                if ($r && $r->np) {
index 019ba1e3c68f1355f6f7f1c223e0754733f49075..0676139aa033647f434bc557a6c6a4cdfc179c82 100644 (file)
@@ -70,7 +70,7 @@ sub new
        ($self->{dxcc}, $self->{itu}, $self->{cq}, $self->{state}, $self->{city}) =
                Prefix::cty_data($call);
 
-       $self->{flags} = here(1);
+       $self->{flags} = 1;
        
        return $self; 
 }
@@ -134,13 +134,6 @@ sub is_empty
        return @{$self->{$_[0]}} == 0;
 }
 
-sub is_aranea
-{
-       my $self = shift;
-       $self->{aranea} = shift if @_;
-       return $self->{aranea};
-}
-
 #
 # flag field constructors/enquirers
 #
@@ -156,21 +149,15 @@ sub is_aranea
 sub here
 {
        my $self = shift;
-       my $r = shift;
-       return $self ? 1 : 0 unless ref $self;
-       return ($self->{flags} & 1) ? 1 : 0 unless defined $r;
-       $self->{flags} = (($self->{flags} & ~1) | ($r ? 1 : 0));
-       return $r ? 1 : 0;
+       $self->{flags} = shift if @_;
+       return $self->{flags};
 }
 
+# conferencing in the ak1a sense is not supported 
 sub conf
 {
        my $self = shift;
-       my $r = shift;
-       return $self ? 2 : 0 unless ref $self;
-       return ($self->{flags} & 2) ? 2 : 0 unless defined $r;
-       $self->{flags} = (($self->{flags} & ~2) | ($r ? 2 : 0));
-       return $r ? 2 : 0;
+       return 0;
 }
 
 sub parents
index d7b3228f6b2aac52ff4602d7a6242aeeb2c6c034..1f225b592862c76e217ca6bc8e9f39082e1cf9fb 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, Route::here($main::me->here)|Route::conf($main::me->conf));
+$routeroot = Route::Node->new($mycall, $version*100+5252, $main::me->here);
 
 # make sure that there is a routing OUTPUT node default file
 #unless (Filter::read_in('route', 'node_default', 0)) {