message.
You can carry on with the message until you are ready to send it.
+
+=== 6^SEND_CONFIG^Broadcast PC92 C records
+This is the PC92 equivalent of INIT. In that it will send out a new
+PC92 C record to all interfaces. This can be used to bring other nodes
+up to date quicker after a restart.
+
=== 0^SET/ADDRESS <your address>^Record your postal address
=== 9^SET/AGWENGINE^Enable the AGW Engine
--- /dev/null
+#
+# send out PC92 config records manually
+#
+
+my $self = shift;
+return (1, $self->msg('e5')) unless $self->priv > 5;
+
+$main::me->broadcast_pc92_update($main::mycall);
+
+return (1, $self->msg('ok'));
my $ref = Route::get($l);
if ($ref) {
my $parents = $ref->isa('Route::Node') ? $l : join(',', $ref->parents);
- push @out, $self->msg('route', $l, $parents, join(',', map {$_->call} Route::findroutes($l)));
+ my @n = map { $_->[1]->call . '(' . (100 - $_->[0]) . ')' } Route::findroutes($l);
+ @n = @n[0,1,2,3],'...' if @n > 4;
+ push @out, $self->msg('route', $l, $parents, join(',', @n));
} else {
push @out, $self->msg('e7', $l);
}
my $dxchan = DXChannel::get($call);
if ($dxchan) {
dbg("ROUTE: findroutes $call -> directly connected") if isdbg('findroutes');
- return $dxchan;
+ return [99, $dxchan];
}
my $nref = Route::get($call);
$dxchan = DXChannel::get($p);
if ($dxchan) {
dbg("ROUTE: findroutes $call -> connected direct via parent $p") if isdbg('findroutes');
- return $dxchan;
+ return [99, $dxchan];
}
my $r = Route::Node::get($p);
}
# get a sorted list of dxchannels with the highest hop count first
- my @nout = map {$_->[1]} sort {$b->[0] <=> $a->[0]} @out;
+ my @nout = sort {$b->[0] <=> $a->[0]} @out;
if (isdbg('findroutes')) {
- if (@out) {
- foreach (sort {$b->[0] <=> $a->[0]} @out) {
+ if (@nout) {
+ for (@nout) {
dbg("ROUTE: findroutes $call -> $_->[0] " . $_->[1]->call);
}
}
{
my $self = shift;
my @dxchan = findroutes($self->{call});
- return @dxchan;
+ return map {$_->[1]} @dxchan;
}
sub dxchan
$version = '1.55';
$subversion = '0';
-$build = '16';
+$build = '17';
1;