]> git.ipfire.org Git - people/ms/linux.git/commit - net/ceph/messenger.c
ceph: use fixed endian encoding for ceph_entity_addr
authorSage Weil <sage@newdream.net>
Tue, 3 Nov 2009 23:17:56 +0000 (15:17 -0800)
committerSage Weil <sage@newdream.net>
Tue, 3 Nov 2009 23:17:56 +0000 (15:17 -0800)
commit63f2d211954b790fea0a9caeae605c7956535af6
treeb49257aa54d9657539eeba014f9ff5f91f8495de
parent859e7b149362475672e2a996f29b8f45cbb34d82
ceph: use fixed endian encoding for ceph_entity_addr

We exchange struct ceph_entity_addr over the wire and store it on disk.
The sockaddr_storage.ss_family field, however, is host endianness.  So,
fix ss_family endianness to big endian when sending/receiving over the
wire.

Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/decode.h
fs/ceph/mdsmap.c
fs/ceph/messenger.c
fs/ceph/messenger.h
fs/ceph/mon_client.c
fs/ceph/msgr.h
fs/ceph/osdmap.c