aboutsummaryrefslogtreecommitdiffstats
path: root/package/6to4/files.old
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-04-23 10:12:00 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-04-23 10:12:00 +0000
commit5d0f47e4bb8313ea3a7e4daaeeca4ba3c387f54e (patch)
tree0ff76e6ec40c9c0570c0441f26292f2d339a7f26 /package/6to4/files.old
parentd4f3677cbad3b83735c37cef2e5655c918c668c3 (diff)
downloadupstream-5d0f47e4bb8313ea3a7e4daaeeca4ba3c387f54e.tar.gz
upstream-5d0f47e4bb8313ea3a7e4daaeeca4ba3c387f54e.tar.bz2
upstream-5d0f47e4bb8313ea3a7e4daaeeca4ba3c387f54e.zip
6to4: follow RFC 6598 and consider 100.61.0.0/10 a private range (#11323)
SVN-Revision: 31444
Diffstat (limited to 'package/6to4/files.old')
-rwxr-xr-xpackage/6to4/files.old/6to4.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/6to4/files.old/6to4.sh b/package/6to4/files.old/6to4.sh
index f7f48e5ba4..2329e0bd47 100755
--- a/package/6to4/files.old/6to4.sh
+++ b/package/6to4/files.old/6to4.sh
@@ -24,6 +24,10 @@ test_6to4_rfc1918()
[ $1 -eq 10 ] && return 0
[ $1 -eq 192 ] && [ $2 -eq 168 ] && return 0
[ $1 -eq 172 ] && [ $2 -ge 16 ] && [ $2 -le 31 ] && return 0
+
+ # RFC 6598
+ [ $1 -eq 100 ] && [ $2 -ge 64 ] && [ $2 -le 127 ] && return 0
+
return 1
}