Source-Changes-HG archive

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

[src/trunk]: src/sys/net/npf revert dir hack.



details:   https://anonhg.NetBSD.org/src/rev/542a33a98411
branches:  trunk
changeset: 349436:542a33a98411
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Dec 10 22:09:49 2016 +0000

description:
revert dir hack.

diffstat:

 sys/net/npf/npf_conn.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 3379565932db -r 542a33a98411 sys/net/npf/npf_conn.c
--- a/sys/net/npf/npf_conn.c    Sat Dec 10 22:09:18 2016 +0000
+++ b/sys/net/npf/npf_conn.c    Sat Dec 10 22:09:49 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: npf_conn.c,v 1.20 2016/12/10 19:05:45 christos Exp $   */
+/*     $NetBSD: npf_conn.c,v 1.21 2016/12/10 22:09:49 christos Exp $   */
 
 /*-
  * Copyright (c) 2014-2015 Mindaugas Rasiukevicius <rmind at netbsd org>
@@ -99,7 +99,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: npf_conn.c,v 1.20 2016/12/10 19:05:45 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: npf_conn.c,v 1.21 2016/12/10 22:09:49 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -1115,7 +1115,6 @@
                return ESRCH;
        }
 
-       dir = dir == PFIL_IN ? PFIL_OUT : PFIL_IN;
        if (!npf_conn_ok(con, dir, true)) {
                atomic_dec_uint(&con->c_refcnt);
                return ESRCH;



Home | Main Index | Thread Index | Old Index