summaryrefslogtreecommitdiff
path: root/sys/netinet6/frag6.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netinet6/frag6.c')
-rw-r--r--sys/netinet6/frag6.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/sys/netinet6/frag6.c b/sys/netinet6/frag6.c
index a5b8ae261be..20bbcd1ce33 100644
--- a/sys/netinet6/frag6.c
+++ b/sys/netinet6/frag6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: frag6.c,v 1.77 2017/10/29 14:56:36 florian Exp $ */
+/* $OpenBSD: frag6.c,v 1.78 2017/11/05 13:19:59 florian Exp $ */
/* $KAME: frag6.c,v 1.40 2002/05/27 21:40:31 itojun Exp $ */
/*
@@ -633,20 +633,3 @@ frag6_slowtimo(void)
NET_UNLOCK();
}
-
-/*
- * Drain off all datagram fragments.
- */
-void
-frag6_drain(void)
-{
- struct ip6q *q6;
-
- if (ip6q_lock_try() == 0)
- return;
- while ((q6 = TAILQ_FIRST(&frag6_queue)) != NULL) {
- ip6stat_inc(ip6s_fragdropped);
- frag6_freef(q6);
- }
- IP6Q_UNLOCK();
-}