]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
msg: Fix Windows IPv6 support 47302/head
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Tue, 16 Nov 2021 13:53:37 +0000 (13:53 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Thu, 25 Aug 2022 09:43:10 +0000 (09:43 +0000)
commitbd5c202e870a3d125f4cac9d17e9cd9239190108
treeb5105c5e854dd465a278696645ca48ea01d4ebbc
parent81b59ed3c22ad6b5145a2bf2277b730f72e7f3fe
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