]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
networkd: turn UnicastFlood on by default
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 25 Jul 2015 03:04:57 +0000 (23:04 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 25 Jul 2015 03:44:42 +0000 (23:44 -0400)
Looking at the kernel commit, "on" seems to be the default value:
commit 867a59436fc35593ae0e0efcd56cc6d2f8506586
Author: Vlad Yasevich <vyasevic@redhat.com>
Date:   Wed Jun 5 10:08:01 2013 -0400

    bridge: Add a flag to control unicast packet flood.

    Add a flag to control flood of unicast traffic.  By default, flood is
    on and the bridge will flood unicast traffic if it doesn't know
    the destination.  When the flag is turned off, unicast traffic
    without an FDB will not be forwarded to the specified port.

... and it seems to be the reasonable thing to do by default.

man/systemd.network.xml
src/network/networkd-network.c

index 0dab96d127e9f045654a31a8b149547f062d5f58..196e57dd57aae4a7630e30a815d0eb5b7032b657 100644 (file)
         <varlistentry>
           <term><varname>UnicastFlood=</varname></term>
           <listitem>
-            <para>A boolean. UnicastFlood configures whether a given port will flood
-            unicast traffic for which there is no FDB entry. Defaults to off.
+            <para>A boolean. Controls whether the bridge should flood
+            traffic for which an FDB entry is missing and the destination
+            is unknown through this port. Defaults to on.
             </para>
           </listitem>
         </varlistentry>
index ff0f72cfe59ed075c5023eac84969894ca21acf1..e757219ec5bac577fb83422bad87c5d0a7ef283b 100644 (file)
@@ -108,6 +108,7 @@ static int network_load_one(Manager *manager, const char *filename) {
         network->dhcp_client_identifier = DHCP_CLIENT_ID_DUID;
 
         network->use_bpdu = true;
+        network->unicast_flood = true;
 
         network->llmnr = LLMNR_SUPPORT_YES;