* Also set the mbuf::m_pkthdr.len field before passing it to ether_output().
* This should help with bug #1874. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27674 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -159,7 +159,7 @@ compat_write(void *cookie, off_t position, const void *buffer,
|
||||
|
||||
/* if we waited, check after if the ifp is still valid */
|
||||
|
||||
mb->m_len = min_c(*numBytes, (size_t)MCLBYTES);
|
||||
mb->m_pkthdr.len = mb->m_len = min_c(*numBytes, (size_t)MCLBYTES);
|
||||
memcpy(mtod(mb, void *), buffer, mb->m_len);
|
||||
|
||||
return ifp->if_output(ifp, mb, NULL, NULL);
|
||||
|
||||
Reference in New Issue
Block a user