Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/libexec/identd/npf.c,v rcsdiff: /ftp/cvs/cvsroot/src/libexec/identd/npf.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.1 retrieving revision 1.2 diff -u -p -r1.1 -r1.2 --- src/libexec/identd/npf.c 2016/12/10 05:43:11 1.1 +++ src/libexec/identd/npf.c 2016/12/10 22:09:18 1.2 @@ -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 -__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 #include @@ -84,7 +84,7 @@ npf_natlookup(const struct sockaddr_stor 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;