projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lower 60m limit
[spider.git]
/
cmd
/
show
/
route.pl
diff --git
a/cmd/show/route.pl
b/cmd/show/route.pl
index 95497d2d9d02c96806e332def3ff97a84b92126d..04eecd868ad399d3264e255622c11cfbfc21b414 100644
(file)
--- a/
cmd/show/route.pl
+++ b/
cmd/show/route.pl
@@
-3,7
+3,7
@@
#
# Copyright (c) 2001 Dirk Koopman G1TLH
#
#
# Copyright (c) 2001 Dirk Koopman G1TLH
#
-#
$Id$
+#
#
my ($self, $line) = @_;
#
my ($self, $line) = @_;
@@
-12,14
+12,24
@@
my @out;
return (1, $self->msg('e6')) unless @list;
return (1, $self->msg('e6')) unless @list;
+use RouteDB;
+
my $l;
foreach $l (@list) {
my $l;
foreach $l (@list) {
- my $ref =
DXCluster->get_exac
t($l);
+ my $ref =
Route::ge
t($l);
if ($ref) {
if ($ref) {
- push @out, $self->msg('route', $l, $ref->mynode->call, $ref->dxchan->call);
+ my $parents = $ref->isa('Route::Node') ? $l : join(',', $ref->parents);
+ push @out, $self->msg('route', $l, $parents, join(',', map {$_->call} Route::findroutes($l)));
} else {
push @out, $self->msg('e7', $l);
}
} else {
push @out, $self->msg('e7', $l);
}
+ my @in = RouteDB::_sorted($l);
+ if (@in) {
+ push @out, "Learned Routes:";
+ for (@in) {
+ push @out, "$l via $_->{call} count: $_->{count} last heard: " . atime($_->{t});
+ }
+ }
}
return (1, @out);
}
return (1, @out);