Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net In if_qflush(), use IFQ_PURGE() rathen than an open-...
details: https://anonhg.NetBSD.org/src/rev/29f4b1387b01
branches: trunk
changeset: 500557:29f4b1387b01
user: thorpej <thorpej%NetBSD.org@localhost>
date: Wed Dec 13 22:06:05 2000 +0000
description:
In if_qflush(), use IFQ_PURGE() rathen than an open-coded version.
diffstat:
sys/net/if.c | 12 ++----------
1 files changed, 2 insertions(+), 10 deletions(-)
diffs (27 lines):
diff -r 8c90a5be942e -r 29f4b1387b01 sys/net/if.c
--- a/sys/net/if.c Wed Dec 13 22:05:12 2000 +0000
+++ b/sys/net/if.c Wed Dec 13 22:06:05 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if.c,v 1.76 2000/12/12 17:48:29 thorpej Exp $ */
+/* $NetBSD: if.c,v 1.77 2000/12/13 22:06:05 thorpej Exp $ */
/*-
* Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
@@ -944,16 +944,8 @@
if_qflush(ifq)
struct ifqueue *ifq;
{
- struct mbuf *m, *n;
- n = ifq->ifq_head;
- while ((m = n) != NULL) {
- n = m->m_act;
- m_freem(m);
- }
- ifq->ifq_head = 0;
- ifq->ifq_tail = 0;
- ifq->ifq_len = 0;
+ IFQ_PURGE(ifq);
}
/*
Home |
Main Index |
Thread Index |
Old Index