summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2011-07-05 00:58:28 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2011-07-05 00:58:28 +0000
commit8a934db741897bca19a31dc3edf6c50b3f780169 (patch)
treec48fded5ef894fed4b2822cb195f506612b11e81 /sys/net
parent87f98e28c34a2ae86af8f58d4809ac8976f2c703 (diff)
now of course I only noticed if_qflush is completely unused after
adjusting it to the new world order in my tree... remove it, ok ryan claudio
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if.c20
-rw-r--r--sys/net/if.h3
2 files changed, 2 insertions, 21 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.
diff --git a/sys/net/if.h b/sys/net/if.h
index 3b0ba2aec8f..0a493f62cef 100644
--- a/sys/net/if.h
+++ b/sys/net/if.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.h,v 1.125 2011/07/03 23:12:29 henning Exp $ */
+/* $OpenBSD: if.h,v 1.126 2011/07/05 00:58:27 henning Exp $ */
/* $NetBSD: if.h,v 1.23 1996/05/07 02:40:27 thorpej Exp $ */
/*
@@ -795,7 +795,6 @@ void if_detach(struct ifnet *);
void if_down(struct ifnet *);
void if_downall(void);
void if_link_state_change(struct ifnet *);
-void if_qflush(struct ifqueue *);
void if_slowtimo(void *);
void if_up(struct ifnet *);
int ifconf(u_long, caddr_t);