diff options
author | adrian <adrian@FreeBSD.org> | 2013-11-02 15:13:02 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2013-11-02 15:13:02 +0000 |
commit | 900b03bfd292638d49e1ac08220d42da9964a1ec (patch) | |
tree | a5826a63d5a5fcab79d6b7e3682f584e168f9cb0 /sys/net/if_tun.c | |
parent | f6c0af936d16e5b05a41713fcf6b118e873e5217 (diff) | |
download | FreeBSD-src-900b03bfd292638d49e1ac08220d42da9964a1ec.zip FreeBSD-src-900b03bfd292638d49e1ac08220d42da9964a1ec.tar.gz |
Restore the entropy gathering from the m_data pointer value, not the
m_data payload.
After talking with markm/bde, this is what markm actually intended.
Diffstat (limited to 'sys/net/if_tun.c')
-rw-r--r-- | sys/net/if_tun.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c index 13aef2a..ddef6f9 100644 --- a/sys/net/if_tun.c +++ b/sys/net/if_tun.c @@ -919,7 +919,7 @@ tunwrite(struct cdev *dev, struct uio *uio, int flag) return (EAFNOSUPPORT); } if (harvest.point_to_point) - random_harvest(mtod(m, const void *), 12, 2, RANDOM_NET_TUN); + random_harvest(&(m->m_data), 12, 2, RANDOM_NET_TUN); ifp->if_ibytes += m->m_pkthdr.len; ifp->if_ipackets++; CURVNET_SET(ifp->if_vnet); |