Module Name: src
Committed By: sborrill
Date: Thu Dec 13 13:11:28 UTC 2018
Modified Files:
src/libexec/identd: ipf.c
Log Message:
IPFilter 5 requires you to specify IPv4 or IPv6
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/libexec/identd/ipf.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/libexec/identd/ipf.c
diff -u src/libexec/identd/ipf.c:1.3 src/libexec/identd/ipf.c:1.4
--- src/libexec/identd/ipf.c:1.3 Sat Dec 10 05:43:11 2016
+++ src/libexec/identd/ipf.c Thu Dec 13 13:11:28 2018
@@ -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_stor
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. */