From 4a7c3ab00aae7b7f32ae2b6071c456770fb83d91 Mon Sep 17 00:00:00 2001 From: jow Date: Mon, 23 Apr 2012 10:12:00 +0000 Subject: [package] 6to4: follow RFC 6598 and consider 100.61.0.0/10 a private range (#11323) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31444 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/6to4/files/6to4.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'package/6to4/files') diff --git a/package/6to4/files/6to4.sh b/package/6to4/files/6to4.sh index 6825385648..5cbdce79ab 100755 --- a/package/6to4/files/6to4.sh +++ b/package/6to4/files/6to4.sh @@ -31,6 +31,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 } @@ -221,7 +225,7 @@ proto_6to4_teardown() { } proto_6to4_init_config() { - no_device=1 + no_device=1 available=1 proto_config_add_string "ipaddr" -- cgit v1.2.3