diff options
author | Sage Weil <sage@newdream.net> | 2009-11-03 18:17:56 -0500 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2009-11-03 18:17:56 -0500 |
commit | 63f2d211954b790fea0a9caeae605c7956535af6 (patch) | |
tree | b49257aa54d9657539eeba014f9ff5f91f8495de /fs/ceph/messenger.h | |
parent | 859e7b149362475672e2a996f29b8f45cbb34d82 (diff) |
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>
Diffstat (limited to 'fs/ceph/messenger.h')
-rw-r--r-- | fs/ceph/messenger.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ceph/messenger.h b/fs/ceph/messenger.h index dcd98b64dca9..e016fa7cf970 100644 --- a/fs/ceph/messenger.h +++ b/fs/ceph/messenger.h | |||
@@ -53,6 +53,7 @@ extern const char *ceph_name_type_str(int t); | |||
53 | 53 | ||
54 | struct ceph_messenger { | 54 | struct ceph_messenger { |
55 | struct ceph_entity_inst inst; /* my name+address */ | 55 | struct ceph_entity_inst inst; /* my name+address */ |
56 | struct ceph_entity_addr my_enc_addr; | ||
56 | struct page *zero_page; /* used in certain error cases */ | 57 | struct page *zero_page; /* used in certain error cases */ |
57 | 58 | ||
58 | bool nocrc; | 59 | bool nocrc; |