From 8a3bb03c25c6aad10dd8cae21a2f8c11ee926cd4 Mon Sep 17 00:00:00 2001 From: markm Date: Mon, 26 Aug 2013 18:35:21 +0000 Subject: Snapshot; Do some running repairs on entropy harvesting. More needs to follow. --- sys/net/if_ethersubr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys/net/if_ethersubr.c') diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c index e8d395a..638b364 100644 --- a/sys/net/if_ethersubr.c +++ b/sys/net/if_ethersubr.c @@ -638,9 +638,8 @@ ether_input_internal(struct ifnet *ifp, struct mbuf *m) m->m_flags |= M_PROMISC; } - /* First chunk of an mbuf contains good entropy */ if (harvest.ethernet) - random_harvest(m, 16, 3, 0, RANDOM_NET); + random_harvest(&(m->m_data), 12, 3, 0, RANDOM_NET_ETHER); ether_demux(ifp, m); CURVNET_RESTORE(); -- cgit v1.1