# 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);
# 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;
}
}
$r = Route::User::get($call);
- my $flags = Route::here($here)|Route::conf($conf);
+ my $flags = $here;
if ($r) {
my $au = $r->addparent($parent);
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);
}
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) {
($self->{dxcc}, $self->{itu}, $self->{cq}, $self->{state}, $self->{city}) =
Prefix::cty_data($call);
- $self->{flags} = here(1);
+ $self->{flags} = 1;
return $self;
}
return @{$self->{$_[0]}} == 0;
}
-sub is_aranea
-{
- my $self = shift;
- $self->{aranea} = shift if @_;
- return $self->{aranea};
-}
-
#
# flag field constructors/enquirers
#
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
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)) {