summaryrefslogtreecommitdiff
path: root/libexec/identd
diff options
context:
space:
mode:
authorsborrill <sborrill@NetBSD.org>2018-12-13 13:11:28 +0000
committersborrill <sborrill@NetBSD.org>2018-12-13 13:11:28 +0000
commit5f560a683be97ee8c9ffa5b25f23f4c7d2e63ccd (patch)
tree286a63e80552b5e7325b42ccfa624ffeee4677db /libexec/identd
parentf985b786c6c68d1aa30bb4e18e2c1c8165851c60 (diff)
IPFilter 5 requires you to specify IPv4 or IPv6
Diffstat (limited to 'libexec/identd')
-rw-r--r--libexec/identd/ipf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libexec/identd/ipf.c b/libexec/identd/ipf.c
index c8faedd13a6..8516cb5a69c 100644
--- a/libexec/identd/ipf.c
+++ b/libexec/identd/ipf.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ipf.c,v 1.3 2016/12/10 05:43:11 christos Exp $ */
+/* $NetBSD: ipf.c,v 1.4 2018/12/13 13:11:28 sborrill Exp $ */
/*
* ipf.c - NAT lookup code for IP Filter.
@@ -8,7 +8,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: ipf.c,v 1.3 2016/12/10 05:43:11 christos Exp $");
+__RCSID("$NetBSD: ipf.c,v 1.4 2018/12/13 13:11:28 sborrill Exp $");
#include <sys/types.h>
#include <sys/socket.h>
@@ -57,6 +57,7 @@ ipf_natlookup(const struct sockaddr_storage *ss,
nl.nl_realport = ntohs(csatosin(&ss[0])->sin_port);
nl.nl_outport = ntohs(csatosin(&ss[1])->sin_port);
nl.nl_flags = IPN_TCP | IPN_IN;
+ nl.nl_v = 4; /* IPv4 */
break;
case AF_INET6:
/* XXX IP Filter doesn't support IPv6 NAT yet. */