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^0 X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=commitdiff_plain;h=929d169b2e8d16c67fe11d97e00464707e2fb57b;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}));