Skip to Content.
Sympa Menu

ndt-dev - [ndt-dev] Re: Issue 81 in ndt: pcap filter fails for IPs with reverse but without forward lookup

Subject: NDT-DEV email list created

List archive

[ndt-dev] Re: Issue 81 in ndt: pcap filter fails for IPs with reverse but without forward lookup


Chronological Thread 
  • From:
  • To:
  • Subject: [ndt-dev] Re: Issue 81 in ndt: pcap filter fails for IPs with reverse but without forward lookup
  • Date: Wed, 24 Apr 2013 14:15:12 +0000
  • Authentication-results: sfpop-ironport07.merit.edu; dkim=neutral (message not signed) header.i=none


Comment #2 on issue 81 by : pcap filter fails for IPs with reverse but without forward lookup
http://code.google.com/p/ndt/issues/detail?id=81

It's probably simpler to use getnameinfo here.

Something along the lines of

// In case getnameinfo fails make sure we null-terminate namebuf
namebuf[0] = 0;
getnameinfo(sock_addr, I2AddrSockLen(sockAddr), namebuf, sizeof(namebuf), NULL, 0, NI_NUMERICHOST)

This avoids separate IPv4 and IPv6 cases.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings



Archive powered by MHonArc 2.6.16.

Top of Page