Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/libexec/identd IPFilter 5 requires you to specify IPv4 or IPv6



details:   https://anonhg.NetBSD.org/src/rev/e082e5fd2c96
branches:  trunk
changeset: 446660:e082e5fd2c96
user:      sborrill <sborrill%NetBSD.org@localhost>
date:      Thu Dec 13 13:11:28 2018 +0000

description:
IPFilter 5 requires you to specify IPv4 or IPv6

diffstat:

 libexec/identd/ipf.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r e3945aa1d139 -r e082e5fd2c96 libexec/identd/ipf.c
--- a/libexec/identd/ipf.c      Thu Dec 13 12:28:25 2018 +0000
+++ b/libexec/identd/ipf.c      Thu Dec 13 13:11:28 2018 +0000
@@ -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 @@
                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. */



Home | Main Index | Thread Index | Old Index