]> git.ipfire.org Git - people/arne_f/network.git/blobdiff - hooks/zones/bridge
bridge: Automatically enable promisc mode.
[people/arne_f/network.git] / hooks / zones / bridge
index 022ca65486bf63e17ad3f60352a3d8022b687755..7fe89d63b7e2b3b2db2d3f0d2192891188556b6e 100755 (executable)
@@ -114,6 +114,10 @@ function _up() {
 
        device_set_up ${zone}
 
+       # XXX Currently, there is a bug (in the linux kernel?) that we need to
+       # set our bridges to promisc mode.
+       device_set_promisc ${zone} on
+
        # Bring all ports up
        zone_ports_up ${zone}
        zone_configs_up ${zone}
@@ -137,6 +141,9 @@ function _down() {
        zone_configs_down ${zone}
        zone_ports_down ${zone}
 
+       # XXX See remark in _up().
+       device_set_promisc ${zone} off
+
        device_set_down ${zone}
        brctl delbr ${zone}