Commit b56680fd by tomponline

network: Fixes bug in macvlan mode selection

parent 27b73709
...@@ -474,7 +474,7 @@ char *lxc_macvlan_flag_to_mode(int mode) ...@@ -474,7 +474,7 @@ char *lxc_macvlan_flag_to_mode(int mode)
size_t i; size_t i;
for (i = 0; i < sizeof(macvlan_mode) / sizeof(macvlan_mode[0]); i++) { for (i = 0; i < sizeof(macvlan_mode) / sizeof(macvlan_mode[0]); i++) {
if (macvlan_mode[i].mode == mode) if (macvlan_mode[i].mode != mode)
continue; continue;
return macvlan_mode[i].name; return macvlan_mode[i].name;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment