diff options
Diffstat (limited to 'sys/net/if.c')
-rw-r--r-- | sys/net/if.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index 07b3500611b..6c3b90020a1 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if.c,v 1.235 2011/07/04 22:53:53 tedu Exp $ */ +/* $OpenBSD: if.c,v 1.236 2011/07/05 00:58:27 henning Exp $ */ /* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */ /* @@ -1168,24 +1168,6 @@ if_link_state_change(struct ifnet *ifp) } /* - * Flush an interface queue. - */ -void -if_qflush(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; -} - -/* * Handle interface watchdog timer routines. Called * from softclock, we decrement timers (if set) and * call the appropriate interface routine on expiration. |