]> dxcluster.net Git - spider.git/commitdiff
1. first cut with new routing code. Created NEW_ROUTE branch OLDROUTE_1_48
authorminima <minima>
Fri, 8 Jun 2001 16:02:40 +0000 (16:02 +0000)
committerminima <minima>
Fri, 8 Jun 2001 16:02:40 +0000 (16:02 +0000)
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 [new file with mode: 0644]
cmd/reject/route.pl [new file with mode: 0644]

diff --git a/cmd/accept/route.pl b/cmd/accept/route.pl
new file mode 100644 (file)
index 0000000..3b706a7
--- /dev/null
@@ -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 (file)
index 0000000..59c325b
--- /dev/null
@@ -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}));