move add_net_randomness from ether_input to the if_input task.
authordlg <dlg@openbsd.org>
Tue, 26 May 2015 11:36:26 +0000 (11:36 +0000)
committerdlg <dlg@openbsd.org>
Tue, 26 May 2015 11:36:26 +0000 (11:36 +0000)
commit16174ce41b458dbc236f418497633ccb2eb1ecd7
tree14f68920fb2b7d0e3303a849093bfd2ab2d16de9
parent4010ecea02e74ed066697e292cf91a91e20e51e7
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@
sys/net/if.c
sys/net/if_ethersubr.c
sys/net/if_tun.c
sys/net/netisr.h