Lines Matching refs:prog
87 struct ng_bpf_hookprog *prog; member
242 if (strcmp(hip->prog->ifMatch, NG_HOOK_NAME(h)) == 0) in ng_bpf_addrefs()
244 if (strcmp(hip->prog->ifNotMatch, NG_HOOK_NAME(h)) == 0) in ng_bpf_addrefs()
291 strlcpy(hip->prog->thisHook, name, sizeof(hip->prog->thisHook)); in ng_bpf_newhook()
346 hp = ((hinfo_p)NG_HOOK_PRIVATE(hook))->prog; in ng_bpf_rcvmsg()
468 len = bpf_filter(hip->prog->bpf_prog, data, totlen, totlen); in ng_bpf_rcvdata()
470 len = bpf_filter(hip->prog->bpf_prog, (u_char *)m, totlen, 0); in ng_bpf_rcvdata()
529 kfree(hip->prog, M_NETGRAPH_BPF); in ng_bpf_disconnect()
574 if (hip->prog != NULL) in ng_bpf_setprog()
575 kfree(hip->prog, M_NETGRAPH_BPF); in ng_bpf_setprog()
576 hip->prog = hp; in ng_bpf_setprog()
584 hip->match = ng_findhook(NG_HOOK_NODE(hook), hip->prog->ifMatch); in ng_bpf_setprog()
585 hip->nomatch = ng_findhook(NG_HOOK_NODE(hook), hip->prog->ifNotMatch); in ng_bpf_setprog()