From 07ae5407245282f66198ded42cc5fa24c60c2347 Mon Sep 17 00:00:00 2001 From: YONETANI Tomokazu Date: Sat, 23 Jul 2016 14:47:52 +0900 Subject: [PATCH] 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 --- miniupnpd/portinuse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miniupnpd/portinuse.c b/miniupnpd/portinuse.c index 3c664bd..a6400e3 100644 --- a/miniupnpd/portinuse.c +++ b/miniupnpd/portinuse.c @@ -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),