summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2016-12-10 22:09:18 +0000
committerchristos <christos@NetBSD.org>2016-12-10 22:09:18 +0000
commitceea0402612945c90c05cd897b44b87bad990481 (patch)
tree9bb7c8454c56c3c7b9e96a0bc3c4e51d5af01cc8 /libexec
parent4221e9a18add9c62bcea71fabb21ed89c362e8b0 (diff)
Fix the direction; ipf/pf seem to be wrong...
Diffstat (limited to 'libexec')
-rw-r--r--libexec/identd/npf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/identd/npf.c b/libexec/identd/npf.c
index e55ab467cad..b6f370ab51e 100644
--- a/libexec/identd/npf.c
+++ b/libexec/identd/npf.c
@@ -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 @@ npf_natlookup(const struct sockaddr_storage *ss,
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;