AA: brcm47xx: prevent the switch from leaking packages between lan and wan.
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 14 Jul 2013 14:49:07 +0000 (14:49 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 14 Jul 2013 14:49:07 +0000 (14:49 +0000)
This is partly a backport of r37286, this closes #13716

SVN-Revision: 37309

target/linux/brcm47xx/base-files/lib/preinit/05_set_failsafe_switch_brcm
target/linux/brcm47xx/base-files/lib/preinit/15_set_preinit_interface_brcm

index a93559f97b40a980aeee9bd408269d8d54c6d664..da752b31b2361f3cd125155b4be52acb9a637d99 100644 (file)
@@ -2,7 +2,6 @@
 
 failsafe_ip() {
        [ -d /proc/switch/eth0 ] && [ "$ifname" = "eth0" ] && {
-               ifconfig eth0 0.0.0.0 down
                echo "0 1 2 3 4 ${cpu_port:-5u*}" > /proc/switch/eth0/vlan/0/ports
        }
        
index a0a3033465bd0cd16e453d3a9fa8babebfad983a..e2260a490af1e7c68e489d65e6eead3cffe90fc0 100644 (file)
@@ -30,9 +30,9 @@ preinit_net_echo() {
                        echo "$port ${cpu_port:-5u*}" > /proc/switch/eth0/vlan/0/ports
                        port_net_echo $1
                }; done
-               
-               echo "0 1 2 3 4 ${cpu_port:-5u*}" > /proc/switch/eth0/vlan/0/ports
-               
+
+               echo 1 > /proc/switch/eth0/reset
+
        } || port_net_echo $1
 }