Port-xen archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: NetBSD/xen network problems (need help)
> The first thing I would do is print the new mbuf chain in m_makewritable.
> We have:
> for (n = *mp; n; n = n->m_next)
> reslen += n->m_len;
> if (origlen != reslen)
> panic("m_makewritable: length changed");
>
> I would change it to:
> for (n = *mp; n; n = n->m_next)
> reslen += n->m_len;
> if (origlen != reslen) {
> for (n = *mp; n; n = n->m_next)
> printf("mbuf len %d type %d flags %d\n",
> n->m_next, n->m_type, n->m_flags);
> printf("m_makewritable origlen %d newlen %d\n",
> origlen, reslen);
> panic("m_makewritable: length changed");
> }
-current has m_print(), which i wrote after getting tired to
write this kind of debug printf again and again. :-)
YAMAMOTO Takashi
Home |
Main Index |
Thread Index |
Old Index