]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
msgr: encode sockaddr.ss_family big endian in ceph_entity_addr
authorSage Weil <sage@newdream.net>
Tue, 3 Nov 2009 23:15:22 +0000 (15:15 -0800)
committerSage Weil <sage@newdream.net>
Tue, 3 Nov 2009 23:19:30 +0000 (15:19 -0800)
commitf4826004a93b4b489cd34b3d0a0be7b1ce2954e8
tree6385b3a52bf1129bcdababcf9e5d7acd13eac69c
parent2a652717519bb199f6585baba3e5da20585a1890
msgr: encode sockaddr.ss_family big endian in ceph_entity_addr

The ss_family field is normally host endianness, but we
want to exchange ceph_entity_addr across the wire and store
it on disk.  So, encode ss_family in big endian (to match
the other sockaddr field endianness).

Rev disk and wire protocols to match.
src/include/msgr.h
src/mds/mdstypes.h
src/mon/Monitor.cc
src/mon/mon_types.h
src/msg/SimpleMessenger.cc
src/msg/msg_types.h
src/msg/tcp.h
src/osd/OSDMap.h
src/osd/osd_types.h