make indent
This commit is contained in:
parent
3342a8d483
commit
2e9fd0e2e4
@ -393,12 +393,11 @@ void setupUsers(nsjconf_t* nsjconf) {
|
||||
}
|
||||
|
||||
std::string parseMACVlanMode(const char* optarg) {
|
||||
if (strcasecmp(optarg, "private") != 0 &&
|
||||
strcasecmp(optarg, "vepa") != 0 &&
|
||||
strcasecmp(optarg, "bridge") != 0 &&
|
||||
strcasecmp(optarg, "passthru") != 0) {
|
||||
if (strcasecmp(optarg, "private") != 0 && strcasecmp(optarg, "vepa") != 0 &&
|
||||
strcasecmp(optarg, "bridge") != 0 && strcasecmp(optarg, "passthru") != 0) {
|
||||
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).",
|
||||
optarg);
|
||||
}
|
||||
|
3
net.cc
3
net.cc
@ -85,7 +85,8 @@ static bool cloneIface(
|
||||
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",
|
||||
nsjconf->iface_vs_mo.c_str(), nl_geterror(err));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user