From fb50d2e41f6666fbf0f375bfe34d2e288e9b1e15 Mon Sep 17 00:00:00 2001 From: Marco Pfatschbacher Date: Sat, 19 Jan 2008 18:26:19 +0000 Subject: Fix add_net_randomness() not being called because the wrong bit in netisr is set. 1 != (1 << 1). Reported by mickey, fix by me. OK markus@, miod@, claudio@ --- sys/net/netisr.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/net') diff --git a/sys/net/netisr.h b/sys/net/netisr.h index 842d62de064..4c56b7e5c17 100644 --- a/sys/net/netisr.h +++ b/sys/net/netisr.h @@ -1,4 +1,4 @@ -/* $OpenBSD: netisr.h,v 1.28 2007/09/08 02:45:04 dlg Exp $ */ +/* $OpenBSD: netisr.h,v 1.29 2008/01/19 18:26:18 mpf Exp $ */ /* $NetBSD: netisr.h,v 1.12 1995/08/12 23:59:24 mycroft Exp $ */ /* @@ -83,7 +83,7 @@ void btintr(void); #include #define schednetisr(anisr) \ do { \ - atomic_setbits_int(&netisr, (1 << (anisr)) | NETISR_RND); \ + atomic_setbits_int(&netisr, (1 << (anisr)) | (1 << NETISR_RND));\ setsoftnet(); \ } while (0) #endif -- cgit v1.2.3