Lines Matching defs:hp
123 static int ng_tag_setdata_in(hook_p hook, const struct ng_tag_hookin *hp);
124 static int ng_tag_setdata_out(hook_p hook, const struct ng_tag_hookout *hp);
131 const struct ng_tag_hookin *hp;
133 hp = (const struct ng_tag_hookin *)
135 return (hp->tag_len);
142 const struct ng_tag_hookout *hp;
144 hp = (const struct ng_tag_hookout *)
146 return (hp->tag_len);
360 hp = (struct ng_tag_hookin *)msg->data;
364 if (msg->header.arglen < sizeof(*hp) ||
365 msg->header.arglen < NG_TAG_HOOKIN_SIZE(hp->tag_len))
369 if ((hook = ng_findhook(node, hp->thisHook)) == NULL)
373 if ((error = ng_tag_setdata_in(hook, hp)) != 0)
381 hp = (struct ng_tag_hookout *)msg->data;
385 if (msg->header.arglen < sizeof(*hp) ||
386 msg->header.arglen < NG_TAG_HOOKOUT_SIZE(hp->tag_len))
390 if ((hook = ng_findhook(node, hp->thisHook)) == NULL)
394 if ((error = ng_tag_setdata_out(hook, hp)) != 0)
401 struct ng_tag_hookin *hp;
414 hp = ((hinfo_p)NG_HOOK_PRIVATE(hook))->in;
416 NG_TAG_HOOKIN_SIZE(hp->tag_len), M_WAITOK);
418 bcopy(hp, resp->data,
419 NG_TAG_HOOKIN_SIZE(hp->tag_len));
425 struct ng_tag_hookout *hp;
438 hp = ((hinfo_p)NG_HOOK_PRIVATE(hook))->out;
440 NG_TAG_HOOKOUT_SIZE(hp->tag_len), M_WAITOK);
442 bcopy(hp, resp->data,
443 NG_TAG_HOOKOUT_SIZE(hp->tag_len));
645 struct ng_tag_hookin *hp;
650 hp = malloc(size, M_NETGRAPH_TAG, M_WAITOK);
652 bcopy(hp0, hp, size);
657 hip->in = hp;
695 struct ng_tag_hookout *hp;
700 hp = malloc(size, M_NETGRAPH_TAG, M_WAITOK);
702 bcopy(hp0, hp, size);
707 hip->out = hp;