make indent

This commit is contained in:
Robert Swiecki 2021-06-16 17:44:07 +02:00
parent 3342a8d483
commit 2e9fd0e2e4
2 changed files with 11 additions and 11 deletions

View File

@ -393,12 +393,11 @@ void setupUsers(nsjconf_t* nsjconf) {
} }
std::string parseMACVlanMode(const char* optarg) { std::string parseMACVlanMode(const char* optarg) {
if (strcasecmp(optarg, "private") != 0 && if (strcasecmp(optarg, "private") != 0 && strcasecmp(optarg, "vepa") != 0 &&
strcasecmp(optarg, "vepa") != 0 && strcasecmp(optarg, "bridge") != 0 && strcasecmp(optarg, "passthru") != 0) {
strcasecmp(optarg, "bridge") != 0 &&
strcasecmp(optarg, "passthru") != 0) {
LOG_F( LOG_F(
"macvlan mode can only be one of the values: 'private'/'vepa'/'bridge'/'passthru' ('%s' " "macvlan mode can only be one of the values: "
"'private'/'vepa'/'bridge'/'passthru' ('%s' "
"provided).", "provided).",
optarg); optarg);
} }

3
net.cc
View File

@ -85,7 +85,8 @@ static bool cloneIface(
nl_addr_put(nladdr); nl_addr_put(nladdr);
} }
if ((err = rtnl_link_macvlan_set_mode(rmv, rtnl_link_macvlan_str2mode(nsjconf->iface_vs_mo.c_str()))) < 0) { if ((err = rtnl_link_macvlan_set_mode(
rmv, rtnl_link_macvlan_str2mode(nsjconf->iface_vs_mo.c_str()))) < 0) {
LOG_E("rtnl_link_macvlan_set_mode(mode:'%s') failed: %s", LOG_E("rtnl_link_macvlan_set_mode(mode:'%s') failed: %s",
nsjconf->iface_vs_mo.c_str(), nl_geterror(err)); nsjconf->iface_vs_mo.c_str(), nl_geterror(err));
} }