Alexey Serbin has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/23651 )
Change subject: KUDU-1457 [5/n] Enable IPv6-only mode for rpc ...................................................................... KUDU-1457 [5/n] Enable IPv6-only mode for rpc As part of adding IPv6 support, a config flag was added to represent the modes in which a Kudu cluster can be configured. Out of the three possible modes, if user selects 'ipv6' mode, it should essentially entertain tcp requests from only 'ipv6' clients and any incoming 'ipv4' request should fail with 'address family not supported' error. - This patch takes care of that by setting a socket option (IPV6_V6ONLY) at protocol level. - Add a few unit tests to test the added code for different modes and clients from different families. - Miscellaneous changes to improve readability. Change-Id: Ic84ba301d0faa36e928eec54872d02f28a4f793f Reviewed-on: http://gerrit.cloudera.org:8080/23651 Tested-by: Alexey Serbin <[email protected]> Reviewed-by: Alexey Serbin <[email protected]> --- M src/kudu/rpc/messenger.cc M src/kudu/rpc/rpc-test.cc M src/kudu/server/server_base.cc M src/kudu/util/net/sockaddr.cc M src/kudu/util/net/sockaddr.h M src/kudu/util/net/socket.cc M src/kudu/util/net/socket.h 7 files changed, 159 insertions(+), 13 deletions(-) Approvals: Alexey Serbin: Looks good to me, approved; Verified -- To view, visit http://gerrit.cloudera.org:8080/23651 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: merged Gerrit-Change-Id: Ic84ba301d0faa36e928eec54872d02f28a4f793f Gerrit-Change-Number: 23651 Gerrit-PatchSet: 5 Gerrit-Owner: Ashwani Raina <[email protected]> Gerrit-Reviewer: Alexey Serbin <[email protected]> Gerrit-Reviewer: Ashwani Raina <[email protected]> Gerrit-Reviewer: Kudu Jenkins (120) Gerrit-Reviewer: Marton Greber <[email protected]>
