Source-Changes-HG archive

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

[src/trunk]: src/sys/net only call pfil_list_add with one of PFIL_IN or PFIL_...



details:   https://anonhg.NetBSD.org/src/rev/c35b4a36374a
branches:  trunk
changeset: 482808:c35b4a36374a
user:      darrenr <darrenr%NetBSD.org@localhost>
date:      Tue Feb 22 11:30:22 2000 +0000

description:
only call pfil_list_add with one of PFIL_IN or PFIL_OUT defined

diffstat:

 sys/net/pfil.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r e82cf0796a58 -r c35b4a36374a sys/net/pfil.c
--- a/sys/net/pfil.c    Tue Feb 22 11:25:55 2000 +0000
+++ b/sys/net/pfil.c    Tue Feb 22 11:30:22 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pfil.c,v 1.13 2000/02/22 10:45:47 darrenr Exp $        */
+/*     $NetBSD: pfil.c,v 1.14 2000/02/22 11:30:22 darrenr Exp $        */
 
 /*
  * Copyright (c) 1996 Matthew R. Green
@@ -77,9 +77,9 @@
                pfil_init(ph);
 
        if (flags & PFIL_IN)
-               err = pfil_list_add(&ph->ph_in, func, flags);
+               err = pfil_list_add(&ph->ph_in, func, flags & ~PFIL_OUT);
        if ((err == 0) && (flags & PFIL_OUT))
-               err = pfil_list_add(&ph->ph_out, func, flags);
+               err = pfil_list_add(&ph->ph_out, func, flags & ~PFIL_IN);
        return err;
 }
 



Home | Main Index | Thread Index | Old Index