From: minima Date: Fri, 8 Jun 2001 16:02:40 +0000 (+0000) Subject: 1. first cut with new routing code. Created NEW_ROUTE branch X-Git-Tag: OLDROUTE_1_48 X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=15c8b9c8860d059a10facb0e26e4794041a7b41c;p=spider.git 1. first cut with new routing code. Created NEW_ROUTE branch 2. added acc/route and rej/route commands 3. added stat/route_node and stat/route_user commands to look at the routing table entities --- diff --git a/cmd/accept/route.pl b/cmd/accept/route.pl new file mode 100644 index 00000000..3b706a73 --- /dev/null +++ b/cmd/accept/route.pl @@ -0,0 +1,14 @@ +# +# accept/reject filter commands +# +# Copyright (c) 2000 Dirk Koopman G1TLH +# +# $Id$ +# + +my ($self, $line) = @_; +my $type = 'accept'; +my $sort = 'route'; + +my ($r, $filter, $fno) = $Route::filterdef->cmd($self, $sort, $type, $line); +return (0, $r ? $filter : $self->msg('filter1', $fno, $filter->{name})); diff --git a/cmd/reject/route.pl b/cmd/reject/route.pl new file mode 100644 index 00000000..59c325bb --- /dev/null +++ b/cmd/reject/route.pl @@ -0,0 +1,14 @@ +# +# accept/reject filter commands +# +# Copyright (c) 2000 Dirk Koopman G1TLH +# +# $Id$ +# + +my ($self, $line) = @_; +my $type = 'reject'; +my $sort = 'route'; + +my ($r, $filter, $fno) = $Route::filterdef->cmd($self, $sort, $type, $line); +return (0, $r ? $filter : $self->msg('filter1', $fno, $filter->{name}));