* 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:
Axel Dörfler
2008-09-21 20:40:06 +00:00
parent 40ca6c57ee
commit 5cb80a0cd8
+1 -1
View File
@@ -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);