summaryrefslogtreecommitdiffstats
path: root/sys/net/if_ethersubr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net/if_ethersubr.c')
-rw-r--r--sys/net/if_ethersubr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c
index 94e0541..57baa21 100644
--- a/sys/net/if_ethersubr.c
+++ b/sys/net/if_ethersubr.c
@@ -46,6 +46,7 @@
#include <sys/kernel.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
+#include <sys/random.h>
#include <sys/socket.h>
#include <sys/sockio.h>
#include <sys/sysctl.h>
@@ -474,6 +475,9 @@ recvLocal:
#endif
/* Continue with upper layer processing */
ether_demux(ifp, eh, m);
+ /* First chunk of an mbuf contains good junk */
+ if (harvest.ethernet)
+ random_harvest(m, 16, 3, 0, RANDOM_NET);
}
/*
OpenPOWER on IntegriCloud