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:
parent
c92b9fa296
commit
07ae540724
|
@ -251,7 +251,7 @@ static struct nlist list[] = {
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
/* no support for IPv6 */
|
/* no support for IPv6 */
|
||||||
if ((inp->inp_vflag & INP_IPV6) != 0)
|
if (INP_ISIPV6(inp) != 0)
|
||||||
continue;
|
continue;
|
||||||
syslog(LOG_DEBUG, "%08lx:%hu %08lx:%hu <=> %hu %08lx:%hu",
|
syslog(LOG_DEBUG, "%08lx:%hu %08lx:%hu <=> %hu %08lx:%hu",
|
||||||
(u_long)inp->inp_laddr.s_addr, ntohs(inp->inp_lport),
|
(u_long)inp->inp_laddr.s_addr, ntohs(inp->inp_lport),
|
||||||
|
|
Loading…
Reference in New Issue