diff options
author | Martin Schwenke <martin@meltin.net> | 2017-09-04 16:20:55 +1000 |
---|---|---|
committer | Martin Schwenke <martins@samba.org> | 2017-09-19 13:30:26 +0200 |
commit | eb32b8d3a0320413db3e01019040c12aeb3f902c (patch) | |
tree | 902e0d63b34c8e1ee35f4f1cae919de29527acac /ctdb/protocol | |
parent | 3816270c76d2aab275dc92d319a1b1708c026b8b (diff) | |
download | samba-eb32b8d3a0320413db3e01019040c12aeb3f902c.tar.gz |
ctdb-protocol: Add server and client aliases in ctdb_connection
The current code is ambiguous in its use of src and dst. This allows
new code to use server and client for clarity.
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'ctdb/protocol')
-rw-r--r-- | ctdb/protocol/protocol.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/ctdb/protocol/protocol.h b/ctdb/protocol/protocol.h index 266fc4b26b6..28a28f41b2f 100644 --- a/ctdb/protocol/protocol.h +++ b/ctdb/protocol/protocol.h @@ -555,8 +555,14 @@ typedef union { } ctdb_sock_addr; struct ctdb_connection { - ctdb_sock_addr src; - ctdb_sock_addr dst; + union { + ctdb_sock_addr src; + ctdb_sock_addr server; + }; + union { + ctdb_sock_addr dst; + ctdb_sock_addr client; + }; }; struct ctdb_tunable { |