From 929d169b2e8d16c67fe11d97e00464707e2fb57b Mon Sep 17 00:00:00 2001 From: minima Date: Fri, 8 Jun 2001 16:02:40 +0000 Subject: [PATCH] 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 --- cmd/accept/route.pl | 14 ++++++++++++++ cmd/reject/route.pl | 14 ++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 cmd/accept/route.pl create mode 100644 cmd/reject/route.pl 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})); -- 2.43.0