aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorLuigi Rizzo <luigi@FreeBSD.org>1999-08-11 14:37:58 +0000
committerLuigi Rizzo <luigi@FreeBSD.org>1999-08-11 14:37:58 +0000
commit706aa7f87076d0aaa9c8b32cfa4b1f0cf3966e8a (patch)
tree2ce4d1330f0f104c7eedd7d158cc38d2cd9da3bc /sys
parent59d5fe5a900350e7f695b6bca03d154034e0a3e4 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/ip_dummynet.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/netinet/ip_dummynet.c b/sys/netinet/ip_dummynet.c
index c097f7c33294..e1c45e805d23 100644
--- a/sys/netinet/ip_dummynet.c
+++ b/sys/netinet/ip_dummynet.c
@@ -10,7 +10,7 @@
*
* This software is provided ``AS IS'' without any warranties of any kind.
*
- * $Id: ip_dummynet.c,v 1.14 1999/05/04 16:20:30 luigi Exp $
+ * $Id: ip_dummynet.c,v 1.15 1999/05/06 22:08:57 peter Exp $
*/
/*
@@ -274,8 +274,10 @@ dummynet(void * __unused unused)
/*
* finally, if some queue has data, restart the timer.
*/
+ s = splimp();
dn_idle = 1;
dn_restart();
+ splx(s);
}
/*
@@ -373,9 +375,9 @@ dummynet_io(int pipe_nr, int dir,
if (pipe->r.head == pkt) { /* process immediately */
dn_move(pipe, 1);
}
- splx(s);
if (dn_idle)
dn_restart();
+ splx(s);
return 0;
}
@@ -603,7 +605,7 @@ ip_dn_ctl(struct sockopt *sopt)
static void
ip_dn_init(void)
{
- printf("DUMMYNET initialized (990504)\n");
+ printf("DUMMYNET initialized (990811)\n");
all_pipes = NULL ;
ip_dn_ctl_ptr = ip_dn_ctl;
}