projects
/
librecmc
/
librecmc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
6to4: follow RFC 6598 and consider 100.61.0.0/10 a private range (#11323)
[librecmc/librecmc.git]
/
package
/
6to4
/
files.old
/
6to4.sh
diff --git
a/package/6to4/files.old/6to4.sh
b/package/6to4/files.old/6to4.sh
index f7f48e5ba465b2bd6c53cfd819ad4755fa398a83..2329e0bd475751fa9c6a27228c6e7a083bc69049 100755
(executable)
--- 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
}