Alexey Serbin has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/17728


Change subject: [net_util] workaround for VPN tunnel interfaces
......................................................................

[net_util] workaround for VPN tunnel interfaces

This patch addresses an issue in GetLocalNetworks() which surfaced
when macOS client for GlobalProtect VPN created a tunnel interface entry
like below on macOS laptop:

  utun2: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1400
          inet 10.xx.yy.zzz --> 10.xx.yy.zzz netmask 0xffffffff

Before this patch, many tests on my macOS laptop would fail with stack
traces like below when the list of network interfaces contained a tunnel
interface mentioned above:

  F0726 16:40:54.328904 257036288 sockaddr.cc:86] Check failed: 2 == 
addr.sin_family (2 vs. unsigned char value 0)
  *** Check failure stack trace: ***
  *** Aborted at 1627342854 (unix time) try "date -d @1627342854" if you are 
using GNU date ***
  PC: @     0x7fff70c6833a __pthread_kill
  *** SIGABRT (@0x7fff70c6833a) received by PID 28695 (TID 0x70000f521000) 
stack trace: ***
      @     0x7fff70d195fd _sigtramp
      @                0x0 (unknown)
      @     0x7fff70bef808 abort
      @        0x116781259 google::logging_fail()
      @        0x116780121 google::LogMessage::SendToLog()
      @        0x116780815 google::LogMessage::Flush()
      @        0x11678476f google::LogMessageFatal::~LogMessageFatal()
      @        0x1167815f9 google::LogMessageFatal::~LogMessageFatal()
      @        0x115711216 kudu::Sockaddr::Sockaddr()
      @        0x1156fcabb kudu::GetLocalNetworks()
      @        0x1120cd337 
kudu::rpc::ServerNegotiation::IsTrustedConnection()::$_4::operator()()

Change-Id: I4963806a709fe380b178d5f9fc633afcf9fb6184
---
M src/kudu/util/net/net_util.cc
1 file changed, 33 insertions(+), 22 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/28/17728/1
--
To view, visit http://gerrit.cloudera.org:8080/17728
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I4963806a709fe380b178d5f9fc633afcf9fb6184
Gerrit-Change-Number: 17728
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <[email protected]>

Reply via email to