]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
msg/async/ProtocolV[12]: add ms_learn_addr_from_peer 27341/head
authorSage Weil <sage@redhat.com>
Thu, 21 Mar 2019 03:42:31 +0000 (22:42 -0500)
committerSage Weil <sage@redhat.com>
Wed, 3 Apr 2019 14:28:02 +0000 (09:28 -0500)
commit05f56ab67fdd67a0fa4742a9578bacb2948bb8e9
treef92a96aa6fccbfc0bdc0b741df8ebeb5dec97145
parent54d0c2b19ab8f2a65eb8ab051daf0d4d1760b91c
msg/async/ProtocolV[12]: add ms_learn_addr_from_peer

Optionally learn our address based on what our peer (usually the mon) thinks we are
connecting from, as opposed to what our local socket used for the outbound connection.
This enables us to detect what our NATed address is (as a client) in those environments.

Default to true to match the v1 behavior.  This is a net change in
behavior for v2.

Signed-off-by: Sage Weil <sage@redhat.com>
src/common/legacy_config_opts.h
src/common/options.cc
src/msg/async/ProtocolV1.cc
src/msg/async/ProtocolV2.cc