summaryrefslogtreecommitdiffstats
path: root/sys/net/if_tun.c
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2015-05-26 11:36:26 +0000
committerdlg <dlg@openbsd.org>2015-05-26 11:36:26 +0000
commit16174ce41b458dbc236f418497633ccb2eb1ecd7 (patch)
tree14f68920fb2b7d0e3303a849093bfd2ab2d16de9 /sys/net/if_tun.c
parentMore than 100+ drivers converted to if_input(), this is the last "real" one. (diff)
downloadwireguard-openbsd-16174ce41b458dbc236f418497633ccb2eb1ecd7.tar.xz
wireguard-openbsd-16174ce41b458dbc236f418497633ccb2eb1ecd7.zip
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);