From: jow Date: Tue, 15 Feb 2011 14:19:19 +0000 (+0000) Subject: [packages] radvd: revert r25424 for now as it seems to cause problems in various... X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=98c70737ddd5b8bc5a56b338e54156e0f6e78db0;p=packages.git [packages] radvd: revert r25424 for now as it seems to cause problems in various cases and it breaks 6to4 prefix announcements. Users who want to use automatic prefix selection can still use ::/64 in the configuration git-svn-id: svn://svn.openwrt.org/openwrt/packages@25546 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/ipv6/radvd/Makefile b/ipv6/radvd/Makefile index a2ec0bc0f..ee95baba4 100644 --- a/ipv6/radvd/Makefile +++ b/ipv6/radvd/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=radvd PKG_VERSION:=1.7 -PKG_RELEASE:=2 +PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://v6web.litech.org/radvd/dist \ diff --git a/ipv6/radvd/files/radvd.init b/ipv6/radvd/files/radvd.init index 08cd791aa..dbbe52cc8 100644 --- a/ipv6/radvd/files/radvd.init +++ b/ipv6/radvd/files/radvd.init @@ -196,7 +196,11 @@ radvd_write_prefix() { done [ "$exist" -eq 0 ] && return 0 - config_get prefixes "$cfg" prefix "::/64" + config_get prefixes "$cfg" prefix + if [ -z "$prefixes" ]; then + prefixes=$(get_ip6addr "$IFNAME") || return 0 + fi + for prefix in $prefixes; do validate_ip6prefix "$prefix" || continue printf '\n\tprefix %s\n\t{\n' "$prefix"