Source-Changes-HG archive

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

[src/trunk]: src/sys/net Change an if_qflush() to an IFQ_PURGE() to deal with...



details:   https://anonhg.NetBSD.org/src/rev/8c7641071374
branches:  trunk
changeset: 500604:8c7641071374
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Dec 14 17:47:26 2000 +0000

description:
Change an if_qflush() to an IFQ_PURGE() to deal with ALTQ correctly.

diffstat:

 sys/net/if.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 8861bd6d147f -r 8c7641071374 sys/net/if.c
--- a/sys/net/if.c      Thu Dec 14 17:41:38 2000 +0000
+++ b/sys/net/if.c      Thu Dec 14 17:47:26 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if.c,v 1.77 2000/12/13 22:06:05 thorpej Exp $  */
+/*     $NetBSD: if.c,v 1.78 2000/12/14 17:47:26 thorpej Exp $  */
 
 /*-
  * Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
@@ -907,7 +907,7 @@
        for (ifa = TAILQ_FIRST(&ifp->if_addrlist); ifa != NULL;
             ifa = TAILQ_NEXT(ifa, ifa_list))
                pfctlinput(PRC_IFDOWN, ifa->ifa_addr);
-       if_qflush(&ifp->if_snd);
+       IFQ_PURGE(&ifp->if_snd);
        rt_ifmsg(ifp);
 }
 



Home | Main Index | Thread Index | Old Index