From eb32b8d3a0320413db3e01019040c12aeb3f902c Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Mon, 4 Sep 2017 16:20:55 +1000 Subject: [PATCH] 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 Reviewed-by: Martin Schwenke --- ctdb/protocol/protocol.h | 10 ++++++++-- 1 file 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 {