Open aaronmbr opened 9 years ago
Comment #1 originally posted by aaronmbr on 2013-04-21T15:56:58.000Z:
I've got a patch that should do filtering on IP instead of hostname. I've attached the patch, and tested it on one of my boxes here. It seemed to work for me, but it'd be good if others tested.
Did you install via RPM or tarball? If the former, I can generate RPMs for you to test.
Comment #2 originally posted by aaronmbr on 2013-04-24T14:15:04.000Z:
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.
Original issue 81 created by aaronmbr on 2013-04-19T17:52:38.000Z:
If a client connects from an IP that has a valid DNS reverse lookup but an invalid forward lookup, the pcap filter will fail and the NDT client test will fail.
For example: