Fix build error on DragonFly for missing inp_vflag

DragonFly has dropped V4-mapped address support some time ago,
and here's how to fix the related code:
  http://lists.dragonflybsd.org/pipermail/users/2014-December/207284.html

Signed-off-by: YONETANI Tomokazu <y0n3t4n1@gmail.com>
This commit is contained in:
YONETANI Tomokazu 2016-07-23 14:47:52 +09:00
parent c92b9fa296
commit 07ae540724
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ static struct nlist list[] = {
abort();
}
/* no support for IPv6 */
if ((inp->inp_vflag & INP_IPV6) != 0)
if (INP_ISIPV6(inp) != 0)
continue;
syslog(LOG_DEBUG, "%08lx:%hu %08lx:%hu <=> %hu %08lx:%hu",
(u_long)inp->inp_laddr.s_addr, ntohs(inp->inp_lport),