Use m_dup() instead of m_copypacket() for the time being. Not all

of the code in the kernel properly checks for read-onlyness before
writing into an mbuf data area. When that code is fixed, the m_dup()
can go back to being m_copypacket().

Requested by:	nsayer
This commit is contained in:
Archie Cobbs 2000-09-23 23:22:27 +00:00
parent 39e31cdb6a
commit 763fcb92c5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=66313

View File

@ -675,7 +675,7 @@ ng_bridge_rcvdata(hook_p hook, struct mbuf *m, meta_p meta,
m2 = m;
meta2 = meta;
} else {
m2 = m_copypacket(m, M_NOWAIT); /* XXX m_dup()? */
m2 = m_dup(m, M_NOWAIT); /* XXX m_copypacket() */
if (m2 == NULL) {
link->stats.memoryFailures++;
NG_FREE_DATA(m, meta);