forked from Imagelibrary/rtems
2003-02-06 Mike Siers <mikes@poliac.com>
PR 342/networking * kern/uipc_mbuf.c: The RTEMS version of the m_copyback is changing the m_len value of the mbuf. I looked into the source from another BSD system and the mbuf length is not changed inside this function. The m_copyback function is only being used in the net/rtsock.c file. So I think this problem is only visable under certain routing table conditions.
This commit is contained in:
@@ -1,3 +1,13 @@
|
|||||||
|
2003-02-06 Mike Siers <mikes@poliac.com>
|
||||||
|
|
||||||
|
PR 342/networking
|
||||||
|
* kern/uipc_mbuf.c: The RTEMS version of the m_copyback is changing
|
||||||
|
the m_len value of the mbuf. I looked into the source from another
|
||||||
|
BSD system and the mbuf length is not changed inside this function.
|
||||||
|
The m_copyback function is only being used in the net/rtsock.c file.
|
||||||
|
So I think this problem is only visable under certain routing table
|
||||||
|
conditions.
|
||||||
|
|
||||||
2003-02-05 Thomas Doerfler <Thomas.Doerfler@imd-systems.de>
|
2003-02-05 Thomas Doerfler <Thomas.Doerfler@imd-systems.de>
|
||||||
|
|
||||||
PR 341/networking
|
PR 341/networking
|
||||||
|
|||||||
@@ -755,7 +755,7 @@ m_copyback(m0, off, len, cp)
|
|||||||
off = 0;
|
off = 0;
|
||||||
totlen += mlen;
|
totlen += mlen;
|
||||||
if (len == 0) {
|
if (len == 0) {
|
||||||
m->m_len = mlen;
|
/* m->m_len = mlen; */
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (m->m_next == 0) {
|
if (m->m_next == 0) {
|
||||||
@@ -767,7 +767,7 @@ m_copyback(m0, off, len, cp)
|
|||||||
n->m_len = min(MLEN, len);
|
n->m_len = min(MLEN, len);
|
||||||
m->m_next = n;
|
m->m_next = n;
|
||||||
}
|
}
|
||||||
m->m_len = mlen;
|
/* m->m_len = mlen; */
|
||||||
m = m->m_next;
|
m = m->m_next;
|
||||||
}
|
}
|
||||||
/*out:*/
|
/*out:*/
|
||||||
|
|||||||
Reference in New Issue
Block a user