GSoC/GCI Archive
Google Code-in 2010 DragonFly BSD

Convert uses of m_get() to m_getb()

completed by: rfw

mentors: Samuel J. Greear

Convert the following uses:

kern/uipc_syscalls.c:           control = m_get(MB_WAIT, MT_CONTROL);
net/rtsock.c:           struct mbuf *n = m_get(MB_DONTWAIT, MT_DATA);
net/route.c:                    m = m_get(MB_DONTWAIT, MT_SONAME);
net/ip6fw/ip6_fw.c:             *mm = m = m_get(MB_WAIT, MT_DATA); /* XXX */
net/ip6fw/ip6_fw.c:                     m->m_next = m_get(MB_WAIT, MT_DATA); /* XXX */

Sizes must be programatically determined for the first argument to m_getb, if it is non-obvious a comment should be added above the call to m_getb briefly explaining what is to be put into the mbuf.