]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
msg: Fix Windows IPv6 support 47303/head
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Tue, 16 Nov 2021 13:53:37 +0000 (13:53 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Wed, 27 Jul 2022 12:59:06 +0000 (12:59 +0000)
commit6d1a4e15ae8065e7aa8faf57e4dc63dd6ddf3bb4
tree5479091e7504fa197c0a78adaeffec13ef53d545
parent326a13991da4406903cf23cbeeab34bfaf6386fd
msg: Fix Windows IPv6 support

The Windows AF_INET6 definition doesn't match the Linux one, thus
sockaddr structures must be converted when being sent over the wire.
Otherwise, Linux hosts will not be able to recognize the address
family and reject Windows client connections:

  handle_client_ident peer is trying to reach
  v2:(unrecognized address family 23)/0 which is not us

Note that this isn't the case with AF_INET, which has the same
definition on both platforms.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
(cherry picked from commit 475e7a6910ed761d298670b34442d0c963937daf)
src/msg/msg_types.h