Lines Matching refs:msg
351 struct ng_mesg *msg;
355 NGI_GET_MSG(item, msg);
356 switch (msg->header.typecookie) {
358 switch (msg->header.cmd) {
362 hp = (struct ng_tag_hookin *)msg->data;
366 if (msg->header.arglen < sizeof(*hp) ||
367 msg->header.arglen < NG_TAG_HOOKIN_SIZE(hp->tag_len))
383 hp = (struct ng_tag_hookout *)msg->data;
387 if (msg->header.arglen < sizeof(*hp) ||
388 msg->header.arglen < NG_TAG_HOOKOUT_SIZE(hp->tag_len))
407 if (msg->header.arglen == 0)
409 msg->data[msg->header.arglen - 1] = '\0';
412 if ((hook = ng_findhook(node, msg->data)) == NULL)
417 NG_MKRESPONSE(resp, msg,
431 if (msg->header.arglen == 0)
433 msg->data[msg->header.arglen - 1] = '\0';
436 if ((hook = ng_findhook(node, msg->data)) == NULL)
441 NG_MKRESPONSE(resp, msg,
458 if (msg->header.arglen == 0)
460 msg->data[msg->header.arglen - 1] = '\0';
463 if ((hook = ng_findhook(node, msg->data)) == NULL)
468 if (msg->header.cmd != NGM_TAG_CLR_STATS) {
470 msg, sizeof(*stats), M_WAITOK);
476 if (msg->header.cmd != NGM_TAG_GET_STATS)
493 NG_FREE_MSG(msg);