Alexey Serbin has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/19230 )
Change subject: [util] a function to check if IP address is among specified ...................................................................... [util] a function to check if IP address is among specified This patch introduces a new utility function IsAddrOneOf() to check if an IPv4 address represented by Sockaddr object matches against a set of other addresses. Any element of the reference set may be a wildcard. This is just a wrapper for std::any() with proper custom comparison operator for Sockaddr. A unit test for the new functionality is added as well. This patch will be used in a follow-up patch. Change-Id: I3f6bac9a5fa038d27ba5924f0fd7d5a50b72a7aa Reviewed-on: http://gerrit.cloudera.org:8080/19230 Tested-by: Alexey Serbin <[email protected]> Reviewed-by: Attila Bukor <[email protected]> --- M src/kudu/util/net/net_util-test.cc M src/kudu/util/net/net_util.cc M src/kudu/util/net/net_util.h 3 files changed, 160 insertions(+), 1 deletion(-) Approvals: Alexey Serbin: Verified Attila Bukor: Looks good to me, approved -- To view, visit http://gerrit.cloudera.org:8080/19230 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: merged Gerrit-Change-Id: I3f6bac9a5fa038d27ba5924f0fd7d5a50b72a7aa Gerrit-Change-Number: 19230 Gerrit-PatchSet: 3 Gerrit-Owner: Alexey Serbin <[email protected]> Gerrit-Reviewer: Alexey Serbin <[email protected]> Gerrit-Reviewer: Attila Bukor <[email protected]> Gerrit-Reviewer: Kudu Jenkins (120) Gerrit-Reviewer: Zoltan Chovan <[email protected]>
