Ashwani Raina has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/23651


Change subject: [rpc] Fail ipv4 requests when ip mode is 'ipv6'
......................................................................

[rpc] Fail ipv4 requests when ip mode is 'ipv6'

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
---
M src/kudu/rpc/messenger.cc
M src/kudu/rpc/rpc-test.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
6 files changed, 140 insertions(+), 3 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/51/23651/1
--
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: newchange
Gerrit-Change-Id: Ic84ba301d0faa36e928eec54872d02f28a4f793f
Gerrit-Change-Number: 23651
Gerrit-PatchSet: 1
Gerrit-Owner: Ashwani Raina <[email protected]>

Reply via email to