summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
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);