Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
jcf94 committed Nov 20, 2018
1 parent afbc4cc commit fdb41e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rdma_message.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ enum Message_type // Use Immediate Number as message type
RDMA_DATA // not a message, but memory data
};

#pragma pack(4)
struct Message_Content
{
uint64_t remote_addr;
Expand All @@ -38,6 +39,7 @@ struct Message_Content
// |remote_addr|buffer_size|rkey|
// | 8B | 8B | 4B |
};
#pragma pack()

static const size_t kRemoteAddrStartIndex = 0;
static const size_t kRemoteAddrEndIndex = kRemoteAddrStartIndex + sizeof(Message_Content::remote_addr);
Expand Down

0 comments on commit fdb41e3

Please sign in to comment.