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';
505 const hinfo_p hip = NG_HOOK_PRIVATE(hook);
517 hip->stats.recvFrames++;
518 hip->stats.recvOctets += totlen;
522 cookie = hip->in_tag_cookie;
523 type = hip->in_tag_id;
524 tag_len = hip->in_tag_len;
537 hip->in_tag_data, tag_len) == 0) {
548 hip->stats.recvMatchFrames++;
549 hip->stats.recvMatchOctets += totlen;
551 if (hip->strip)
553 dest = hip->hi_match;
555 dest = hip->hi_nonmatch;
608 const hinfo_p hip = NG_HOOK_PRIVATE(hook);
612 KASSERT(hip != NULL, ("%s: null info", __func__));
623 free(hip->in, M_NETGRAPH_TAG);
624 free(hip->out, M_NETGRAPH_TAG);
625 free(hip, M_NETGRAPH_TAG);
644 const hinfo_p hip = NG_HOOK_PRIVATE(hook);
655 if (hip->in != NULL)
656 free(hip->in, M_NETGRAPH_TAG);
657 hip->in = hp;
676 hip->hi_match = ng_findhook(NG_HOOK_NODE(hook), hip->in->ifMatch);
677 hip->hi_nonmatch = ng_findhook(NG_HOOK_NODE(hook), hip->in->ifNotMatch);
680 hip->in_tag_cookie = hip->in->tag_cookie;
681 hip->in_tag_id = hip->in->tag_id;
682 hip->in_tag_len = hip->in->tag_len;
683 hip->strip = hip->in->strip;
684 hip->in_tag_data = (void*)(hip->in->tag_data);
694 const hinfo_p hip = NG_HOOK_PRIVATE(hook);
705 if (hip->out != NULL)
706 free(hip->out, M_NETGRAPH_TAG);
707 hip->out = hp;
710 hip->out_tag_cookie = hip->out->tag_cookie;
711 hip->out_tag_id = hip->out->tag_id;
712 hip->out_tag_len = hip->out->tag_len;
713 hip->out_tag_data = (void*)(hip->out->tag_data);