summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_input.c
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2017-11-05 13:20:00 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2017-11-05 13:20:00 +0000
commit907e8031833ae6da6fc03feed7addd7d63b5017f (patch)
tree7c502e79303143ef3ac46f7c4a7e254878d48c01 /sys/netinet/ip_input.c
parentcc762578fd94c37a8bf98f6430c16e68e1147792 (diff)
Finish off pr_drain functions, they haven't been used since 2006.
OK mpi
Diffstat (limited to 'sys/netinet/ip_input.c')
-rw-r--r--sys/netinet/ip_input.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c
index c02e95de474..1b7c323d88f 100644
--- a/sys/netinet/ip_input.c
+++ b/sys/netinet/ip_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_input.c,v 1.328 2017/11/01 06:35:38 mpi Exp $ */
+/* $OpenBSD: ip_input.c,v 1.329 2017/11/05 13:19:59 florian Exp $ */
/* $NetBSD: ip_input.c,v 1.30 1996/03/16 23:53:58 christos Exp $ */
/*
@@ -1039,20 +1039,6 @@ ip_slowtimo(void)
}
/*
- * Drain off all datagram fragments.
- */
-void
-ip_drain(void)
-{
- mtx_enter(&ipq_mutex);
- while (!LIST_EMPTY(&ipq)) {
- ipstat_inc(ips_fragdropped);
- ip_freef(LIST_FIRST(&ipq));
- }
- mtx_leave(&ipq_mutex);
-}
-
-/*
* Flush a bunch of datagram fragments, till we are down to 75%.
*/
void