Unused so far.
Signed-off-by: Sage Weil <sage@redhat.com>
if (strncmp("legacy:", s, 7) == 0) {
start += 7;
newtype = TYPE_LEGACY;
+ } else if (strncmp("msgr2:", s, 6) == 0) {
+ start += 6;
+ newtype = TYPE_MSGR2;
} else if (*s == '-') {
*this = entity_addr_t();
*end = s + 1;
typedef enum {
TYPE_NONE = 0,
TYPE_LEGACY = 1, ///< legacy msgr1 protocol (ceph jewel and older)
+ TYPE_MSGR2 = 2, ///< msgr2 protocol (new in ceph kraken)
} type_t;
static const type_t TYPE_DEFAULT = TYPE_LEGACY;
static const char *get_type_name(int t) {
switch (t) {
case TYPE_NONE: return "none";
case TYPE_LEGACY: return "legacy";
+ case TYPE_MSGR2: return "msgr2";
default: return "???";
}
};