KASSERT that NG_MKMESSAGE() is not called with mbuf flags.

This commit is contained in:
Poul-Henning Kamp 2003-04-18 12:37:33 +00:00
parent 078d4c1b8b
commit 11589318f3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113663

View File

@ -361,6 +361,10 @@ struct flow_manager {
*/
#define NG_MKMESSAGE(msg, cookie, cmdid, len, how) \
do { \
KASSERT(!(how & M_DONTWAIT), \
("NG_MKMESSAGE() with how=M_DONTWAIT (%d)\n", how)); \
KASSERT(!(how & M_TRYWAIT), \
("NG_MKMESSAGE() with how=M_TRYWAIT (%d)\n", how)); \
MALLOC((msg), struct ng_mesg *, sizeof(struct ng_mesg) \
+ (len), M_NETGRAPH_MSG, (how) | M_ZERO); \
if ((msg) == NULL) \