Source-Changes-HG archive

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

[src/trunk]: src/sys/net fix from Mike Pelley to add filters in the reverse o...



details:   https://anonhg.NetBSD.org/src/rev/7442900bb4bf
branches:  trunk
changeset: 482801:7442900bb4bf
user:      darrenr <darrenr%NetBSD.org@localhost>
date:      Tue Feb 22 10:18:49 2000 +0000

description:
fix from Mike Pelley to add filters in the reverse order for output
compared with input.

diffstat:

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

diffs (22 lines):

diff -r 2ddda505628a -r 7442900bb4bf sys/net/pfil.c
--- a/sys/net/pfil.c    Tue Feb 22 08:23:22 2000 +0000
+++ b/sys/net/pfil.c    Tue Feb 22 10:18:49 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pfil.c,v 1.11 2000/02/20 00:56:33 darrenr Exp $        */
+/*     $NetBSD: pfil.c,v 1.12 2000/02/22 10:18:49 darrenr Exp $        */
 
 /*
  * Copyright (c) 1996 Matthew R. Green
@@ -99,7 +99,11 @@
         * insert the input list in reverse order of the output list
         * so that the same path is followed in or out of the kernel.
         */
-       TAILQ_INSERT_TAIL(list, pfh, pfil_link);
+       
+       if (flags & PFIL_IN)
+               TAILQ_INSERT_HEAD(list, pfh, pfil_link);
+       else
+               TAILQ_INSERT_TAIL(list, pfh, pfil_link);
 }
 
 /*



Home | Main Index | Thread Index | Old Index