Add MBTOM(), a macro that converts from an mbuf blocking disposition flag (M_DONTWAIT / M_TRYWAIT) to a malloc(9) blocking disposition flag (M_NOWAIT, M_WAITOK).  The semantic match isn't perfect, but for scenarios where malloc data is used in the network stack, such as for MAC labeling or for m_tags, we sometimes need to map from one to the other to get the right blocking behavior.
Add MBTOM(), a macro that converts from an mbuf blocking disposition
flag (M_DONTWAIT / M_TRYWAIT) to a malloc(9) blocking disposition flag
(M_NOWAIT, M_WAITOK).  The semantic match isn't perfect, but for
scenarios where malloc data is used in the network stack, such as for
MAC labeling or for m_tags, we sometimes need to map from one to the
other to get the right blocking behavior.

Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, Network Associates Laboratories

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase