From d0dd92520742544fb84cf9be5867b607d2aca755 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20K=C3=BCthe?= Date: Thu, 9 Jan 2025 18:10:30 +0000 Subject: [PATCH] Improve filter files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix typo Fix another typo Unify for and to Adjustment of the name according to the example in the wiki Signed-off-by: Marek Küthe --- data/filter.txt | 2 +- data/filter6.txt | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/data/filter.txt b/data/filter.txt index b3f5eb8db..3d6c49fcc 100644 --- a/data/filter.txt +++ b/data/filter.txt @@ -11,7 +11,7 @@ # sed "$ s/,$/\n ];\n}/" # The rules MUST be sorted by the number column first and then the first matching rule MUST be used. -# ROAs MUST be checked against these rules and max-length of the ROA NUST NOT be longer than allowed by the matching rule. +# ROAs MUST be checked against these rules and max-length of the ROA MUST NOT be longer than allowed by the matching rule. #Nr Action Prefix MinLen MaxLen # Comment diff --git a/data/filter6.txt b/data/filter6.txt index 989244f28..270ed12f2 100644 --- a/data/filter6.txt +++ b/data/filter6.txt @@ -1,17 +1,17 @@ -# To FRR Rules: +# For FRR Rules: # cat filter6.txt | \ # grep -e ^[0-9] | \ -# awk '{ print "ipv prefix-list dn42v6-in seq " $1 " " $2 " " $3 " ge " $4 " le " $5}' | \ +# awk '{ print "ipv6 prefix-list dn42v6-in seq " $1 " " $2 " " $3 " ge " $4 " le " $5}' | \ # sed "s_/\([0-9]\+\) ge \1_/\1_g;s_/\([0-9]\+\) le \1_/\1_g" # # For BIRD Rules: # cat filter6.txt | \ -# awk 'BEGIN {printf "function is_valid_network() {\n return net ~ [\n" } \ +# awk 'BEGIN {printf "function is_valid_network_v6() {\n return net ~ [\n" } \ # /^[0-9]/ && $2 ~ /permit/ {printf " %s{%s,%s},\n", $3, $4, $5};' | \ # sed "$ s/,$/\n ];\n}/" # The rules MUST be sorted by the number column first and then the first matching rule MUST be used. -# ROAs MUST be checked against these rules and max-length of the ROA NUST NOT be longer than allowed by the matching rule. +# ROAs MUST be checked against these rules and max-length of the ROA MUST NOT be longer than allowed by the matching rule. # Nr Action Prefix MinLen MaxLen # Comment