Source-Changes-HG archive

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

[src/trunk]: src/libexec/identd Fix the direction; ipf/pf seem to be wrong...



details:   https://anonhg.NetBSD.org/src/rev/3379565932db
branches:  trunk
changeset: 349435:3379565932db
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Dec 10 22:09:18 2016 +0000

description:
Fix the direction; ipf/pf seem to be wrong...

diffstat:

 libexec/identd/npf.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 6a19072004ed -r 3379565932db libexec/identd/npf.c
--- a/libexec/identd/npf.c      Sat Dec 10 22:08:13 2016 +0000
+++ b/libexec/identd/npf.c      Sat Dec 10 22:09:18 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: npf.c,v 1.1 2016/12/10 05:43:11 christos Exp $ */
+/*     $NetBSD: npf.c,v 1.2 2016/12/10 22:09:18 christos Exp $ */
 
 /*-
  * Copyright (c) 2016 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: npf.c,v 1.1 2016/12/10 05:43:11 christos Exp $");
+__RCSID("$NetBSD: npf.c,v 1.2 2016/12/10 22:09:18 christos Exp $");
 
 #include <sys/types.h>
 #include <sys/socket.h>
@@ -84,7 +84,7 @@
                maybe_syslog(LOG_ERR, "Cannot open /dev/npf: %m");
                return 0;
        }
-       if (npf_nat_lookup(dev, af, addr, port, IPPROTO_TCP, PFIL_IN) == -1) {
+       if (npf_nat_lookup(dev, af, addr, port, IPPROTO_TCP, PFIL_OUT) == -1) {
                maybe_syslog(LOG_ERR, "NAT lookup failure: %m");
                (void)close(dev);
                return 0;



Home | Main Index | Thread Index | Old Index