Someone else may have bound to the same port. If they identify as someone
else, fault and back off.
Signed-off-by: Sage Weil <sage@redhat.com>
<< " flags=" << server_ident.flags() << " cookie=" << std::dec
<< server_ident.cookie() << dendl;
+ // is this who we intended to talk to?
+ if (*connection->peer_addrs != server_ident.addrs()) {
+ ldout(cct,1) << __func__ << " peer identifies as " << server_ident.addrs()
+ << " not " << *connection->peer_addrs << dendl;
+ return _fault();
+ }
+
connection->lock.unlock();
messenger->learned_addr(server_ident.peer_addr());
if (cct->_conf->ms_inject_internal_delays &&