mirror of
https://github.com/ntop/n2n.git
synced 2024-09-20 00:51:10 +02:00
differentiated between 'active' and 'standby' in sn-selection-by-mac mode (#887)
This commit is contained in:
parent
3d0c618d99
commit
e0a9bb95fc
|
@ -232,7 +232,8 @@ extern char * sn_selection_criterion_str (n2n_edge_t *eee, selection_criterion_s
|
||||||
}
|
}
|
||||||
|
|
||||||
case SN_SELECTION_STRATEGY_MAC: {
|
case SN_SELECTION_STRATEGY_MAC: {
|
||||||
chars = snprintf(out, SN_SELECTION_CRITERION_BUF_SIZE, "%s", (int64_t)peer->selection_criterion > 0 ? "active" : "");
|
chars = snprintf(out, SN_SELECTION_CRITERION_BUF_SIZE, "%s", ((int64_t)peer->selection_criterion > 0 ?
|
||||||
|
((peer == eee->curr_sn) ? "active" : "standby") : ""));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user