From: Michael Tremer Date: Fri, 9 Jun 2023 10:17:58 +0000 (+0000) Subject: ports: bonding: Use correct enum for mode X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5f9c43922b2b9e52ad61e5b8203854881da793a4;p=people%2Fms%2Fnetwork.git ports: bonding: Use correct enum for mode Signed-off-by: Michael Tremer --- diff --git a/src/networkd/port-bonding.c b/src/networkd/port-bonding.c index ad02b5d7..60649572 100644 --- a/src/networkd/port-bonding.c +++ b/src/networkd/port-bonding.c @@ -97,13 +97,13 @@ int nw_port_bonding_set_mode(nw_port* port, const char* mode) { const int m = nw_port_bonding_mode_from_string(mode); switch (m) { - case BOND_MODE_ROUNDROBIN: - case BOND_MODE_ACTIVEBACKUP: - case BOND_MODE_XOR: - case BOND_MODE_BROADCAST: - case BOND_MODE_8023AD: - case BOND_MODE_TLB: - case BOND_MODE_ALB: + case NW_BONDING_MODE_ROUNDROBIN: + case NW_BONDING_MODE_ACTIVEBACKUP: + case NW_BONDING_MODE_XOR: + case NW_BONDING_MODE_BROADCAST: + case NW_BONDING_MODE_8023AD: + case NW_BONDING_MODE_TLB: + case NW_BONDING_MODE_ALB: port->bonding.mode = m; break;