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:

netproto/ipx/ipx_usrreq.c:                      struct mbuf *m1 = m_get(MB_DONTWAIT, MT_DATA);
netproto/ipx/spx_usrreq.c:                              struct mbuf *m1 = m_get(MB_DONTWAIT, MT_DATA);
netproto/ns/idp_usrreq.c:                       struct mbuf *m1 = m_get(MB_DONTWAIT, MT_DATA);
netproto/ns/idp_usrreq.c:               m = m_get(MB_DONTWAIT, MT_DATA);
netproto/ns/spp_usrreq.c:               am = m_get(MB_DONTWAIT, MT_SONAME);
netproto/ns/spp_usrreq.c:                               struct mbuf *m1 = m_get(MB_DONTWAIT, MT_DATA);
netproto/ns/spp_usrreq.c:               m = m_get(MB_DONTWAIT, MT_DATA);

 

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.