| 341 | } |
| 342 | |
| 343 | void entity_addrvec_t::encode(ceph::buffer::list& bl, uint64_t features) const |
| 344 | { |
| 345 | using ceph::encode; |
| 346 | if ((features & CEPH_FEATURE_MSG_ADDR2) == 0) { |
| 347 | // encode a single legacy entity_addr_t for unfeatured peers |
| 348 | encode(legacy_addr(), bl, 0); |
| 349 | return; |
| 350 | } |
| 351 | encode((__u8)2, bl); |
| 352 | encode(v, bl, features); |
| 353 | } |
| 354 | |
| 355 | void entity_addrvec_t::decode(ceph::buffer::list::const_iterator& bl) |
| 356 | { |