Hi,
>>>>> On Fri, 16 Aug 2013 18:40:56 +0200
>>>>> manu@... said:
manu> I tried the test program published earlier on NetBSD, "::1" is resolved
manu> to "localhost", "IPv6:::1" is not. I guess IPv6: shall be stripped.
manu> I get it working with this:
manu> if (strncmp(addr, "[IPv6:", 6) == 0) {
manu> (void)strncpy(abuf, addr + 6, len - 7);
manu> abuf[len - 7] = '\0';
manu> } else { /* Strip leading '[' and trailing ']' */
manu> (void)strncpy(abuf, addr + 1, len - 2);
manu> abuf[len - 2] = '\0';
manu> }
manu> I wonder if this is a but in NetBSD getnameinfo(3)
The notation of `[IPv6:IPv6-addr]' is just SMTP things, and
getaddrinfo(3) and getnameinfo(3) don't handle it. So, application
has to strip '[IPv6:' and `]'.
Sincerely,
--
Hajimu UMEMOTO
ume@... ume@{,jp.}FreeBSD.org
http://www.mahoroba.org/~ume/Message
Re: [milter-greylist] Submitter DNS name resolution and forgery detection
2013-08-16 by Hajimu UMEMOTO
Attachments
- No local attachments were found for this message.