From 2e9c61de4956fb22341f007b47b0629aee8a5fd7 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 7 Feb 2019 17:04:03 -0600 Subject: [PATCH] doc/dev/msgr2: bring up to date with new HELLO, different RECONNECT Signed-off-by: Sage Weil --- doc/dev/msgr2.rst | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/doc/dev/msgr2.rst b/doc/dev/msgr2.rst index 72979a2b732c..5e47b0f48aac 100644 --- a/doc/dev/msgr2.rst +++ b/doc/dev/msgr2.rst @@ -101,6 +101,17 @@ the form:: has completed (TAG_AUTH_DONE has been sent) and signatures are enabled. +Hello +----- + +* TAG_HELLO: client->server and server->client:: + + __u8 entity_type + entity_addr_t peer_socket_address + + - We immediately share our entity type and the address of the peer (which can be useful + for detecting our effective IP address, especially in the presence of NAT). + Authentication -------------- @@ -276,13 +287,19 @@ an established session. - The cookie can be used by the client if it is later disconnected and wants to reconnect and resume the session. +* TAG_RECONNECT (client->server): reconnect to an established session:: + __le32 num_addrs + entity_addr_t * num_addrs __le64 cookie + __le64 id (of name.id, e.g., osd.123 -> 123) __le64 global_seq __le64 connect_seq + __le64 supported_features + __le64 required_features __le64 msg_seq (the last msg seq received) -* TAG_RECONNECT_OK (server only): acknowledge a reconnect attempt:: +* TAG_RECONNECT_OK (server->client): acknowledge a reconnect attempt:: __le64 msg_seq (last msg seq received) -- 2.47.3