summaryrefslogtreecommitdiff
path: root/sys/net/if_tun.c
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2015-05-26 11:36:27 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2015-05-26 11:36:27 +0000
commitc131d7b17ae570506fe74b23bf380bbf5e896a70 (patch)
treeefc53dd51c347a252220fcc0c3874a664121cff2 /sys/net/if_tun.c
parent0e54373f96ecf85bcf89415c5a719a6cf29d6f0e (diff)
move add_net_randomness from ether_input to the if_input task.
change it from feeding the ethertype of the packet (which is almost certainly an ip packet or vlan packet, so not that variable) to the number of packets about to be processed. ok deraadt@ mpi@
Diffstat (limited to 'sys/net/if_tun.c')
-rw-r--r--sys/net/if_tun.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c
index c66c95b9c1a..c4ea429615c 100644
--- a/sys/net/if_tun.c
+++ b/sys/net/if_tun.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_tun.c,v 1.143 2015/05/20 08:28:54 mpi Exp $ */
+/* $OpenBSD: if_tun.c,v 1.144 2015/05/26 11:36:26 dlg Exp $ */
/* $NetBSD: if_tun.c,v 1.24 1996/05/07 02:40:48 thorpej Exp $ */
/*
@@ -882,9 +882,6 @@ tunwrite(dev_t dev, struct uio *uio, int ioflag)
#endif
if (tp->tun_flags & TUN_LAYER2) {
- /* quirk to not add randomness from a virtual device */
- atomic_setbits_int(&netisr, (1 << NETISR_RND_DONE));
-
s = splnet();
ether_input_mbuf(ifp, top);
splx(s);