diff options
author | Marco Pfatschbacher <mpf@cvs.openbsd.org> | 2008-05-07 05:51:13 +0000 |
---|---|---|
committer | Marco Pfatschbacher <mpf@cvs.openbsd.org> | 2008-05-07 05:51:13 +0000 |
commit | 2a4b30b87039ac2f778756d352f7935d8317f8cd (patch) | |
tree | 838fe3d2c9b7eccb32786f4725455f2d83f295c2 /sys/net/if.c | |
parent | 8370a3080477e7b676b11cf6420090354ccc2e6a (diff) |
Prevent virtual interfaces from adding to the random pool.
Also move the sampling into ether_input() where it can happen
at the interrupt and not within splnet() processing, which might
be less random. Discussed with mickey.
OK markus@, mcbride@
Diffstat (limited to 'sys/net/if.c')
-rw-r--r-- | sys/net/if.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index 84a5f0409a9..2d226cc12d4 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if.c,v 1.169 2008/04/10 23:15:45 dlg Exp $ */ +/* $OpenBSD: if.c,v 1.170 2008/05/07 05:51:12 mpf Exp $ */ /* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */ /* @@ -87,8 +87,6 @@ #include <net/route.h> #include <net/netisr.h> -#include <dev/rndvar.h> - #ifdef INET #include <netinet/in.h> #include <netinet/in_var.h> @@ -1998,9 +1996,3 @@ sysctl_ifq(int *name, u_int namelen, void *oldp, size_t *oldlenp, } /* NOTREACHED */ } - -void -netrndintr(void) -{ - add_net_randomness(0); -} |