[OpenWrt-Devel] [PATCH] netifd: Don't append 6rd dhcp option when iface6rd is empty

2014-11-19 Thread Hans Dedecker
Signed-off-by: Hans Dedecker dedec...@gmail.com
---
 package/network/config/netifd/files/lib/netifd/proto/dhcp.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh 
b/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh
index d4c483d..b042267 100755
--- a/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh
+++ b/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh
@@ -40,7 +40,7 @@ proto_dhcp_setup() {
[ $broadcast = 1 ]  broadcast=-B || broadcast=
[ -n $clientid ]  clientid=-x 0x3d:${clientid//:/} || 
clientid=-C
[ -n $iface6rd ]  proto_export IFACE6RD=$iface6rd
-   [ $iface6rd != 0 -a -f /lib/netifd/proto/6rd.sh ]  append dhcpopts 
-O 212
+   [ ${iface6rd:-0} != 0 -a -f /lib/netifd/proto/6rd.sh ]  append 
dhcpopts -O 212
[ -n $zone6rd ]  proto_export ZONE6RD=$zone6rd
[ -n $zone ]  proto_export ZONE=$zone
[ -n $mtu6rd ]  proto_export MTU6RD=$mtu6rd
-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] netifd: Don't append 6rd dhcp option when iface6rd is empty

2014-11-19 Thread Steven Barth
That change was actually intentional so 6rd is setup if its available 
unless you disable it with iface6rd=0.



Cheers,

Steven
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] netifd: Don't append 6rd dhcp option when iface6rd is empty

2014-11-19 Thread Hans Dedecker
Ok I see your point. Was a bit confused as I had suddenly different dhcp
behavior regarding 6rd with the same config.

Hans

On Wed, Nov 19, 2014 at 1:49 PM, Steven Barth cy...@openwrt.org wrote:

 That change was actually intentional so 6rd is setup if its available
 unless you disable it with iface6rd=0.


 Cheers,

 Steven
 ___
 openwrt-devel mailing list
 openwrt-devel@lists.openwrt.org
 https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel