Lines Matching defs:hip

302 	hinfo_p hip;
306 hip = malloc(sizeof(*hip), M_NETGRAPH_TAG, M_NOWAIT | M_ZERO);
307 if (hip == NULL)
309 NG_HOOK_SET_PRIVATE(hook, hip);
320 free(hip, M_NETGRAPH_TAG);
326 free(hip, M_NETGRAPH_TAG);
336 strncpy(hip->in->thisHook, name, sizeof(hip->in->thisHook) - 1);
337 hip->in->thisHook[sizeof(hip->in->thisHook) - 1] = '\0';
338 strncpy(hip->out->thisHook, name, sizeof(hip->out->thisHook) - 1);
339 hip->out->thisHook[sizeof(hip->out->thisHook) - 1] = '\0';
507 const hinfo_p hip = NG_HOOK_PRIVATE(hook);
519 hip->stats.recvFrames++;
520 hip->stats.recvOctets += totlen;
524 cookie = hip->in_tag_cookie;
525 type = hip->in_tag_id;
526 tag_len = hip->in_tag_len;
539 hip->in_tag_data, tag_len) == 0) {
550 hip->stats.recvMatchFrames++;
551 hip->stats.recvMatchOctets += totlen;
553 if (hip->strip)
555 dest = hip->hi_match;
557 dest = hip->hi_nonmatch;
610 const hinfo_p hip = NG_HOOK_PRIVATE(hook);
614 KASSERT(hip != NULL, ("%s: null info", __func__));
625 free(hip->in, M_NETGRAPH_TAG);
626 free(hip->out, M_NETGRAPH_TAG);
627 free(hip, M_NETGRAPH_TAG);
646 const hinfo_p hip = NG_HOOK_PRIVATE(hook);
657 if (hip->in != NULL)
658 free(hip->in, M_NETGRAPH_TAG);
659 hip->in = hp;
678 hip->hi_match = ng_findhook(NG_HOOK_NODE(hook), hip->in->ifMatch);
679 hip->hi_nonmatch = ng_findhook(NG_HOOK_NODE(hook), hip->in->ifNotMatch);
682 hip->in_tag_cookie = hip->in->tag_cookie;
683 hip->in_tag_id = hip->in->tag_id;
684 hip->in_tag_len = hip->in->tag_len;
685 hip->strip = hip->in->strip;
686 hip->in_tag_data = (void*)(hip->in->tag_data);
696 const hinfo_p hip = NG_HOOK_PRIVATE(hook);
707 if (hip->out != NULL)
708 free(hip->out, M_NETGRAPH_TAG);
709 hip->out = hp;
712 hip->out_tag_cookie = hip->out->tag_cookie;
713 hip->out_tag_id = hip->out->tag_id;
714 hip->out_tag_len = hip->out->tag_len;
715 hip->out_tag_data = (void*)(hip->out->tag_data);