Lines Matching full:pa
254 pfil_head_register(struct pfil_head_args *pa) in pfil_head_register() argument
258 MPASS(pa->pa_version == PFIL_VERSION); in pfil_head_register()
263 head->head_flags = pa->pa_flags; in pfil_head_register()
264 head->head_type = pa->pa_type; in pfil_head_register()
265 head->head_name = pa->pa_headname; in pfil_head_register()
271 if (strcmp(pa->pa_headname, list->head_name) == 0) { in pfil_head_register()
273 pa->pa_headname); in pfil_head_register()
307 pfil_add_hook(struct pfil_hook_args *pa) in pfil_add_hook() argument
311 MPASS(pa->pa_version == PFIL_VERSION); in pfil_add_hook()
314 hook->hook_mbuf_chk = pa->pa_mbuf_chk; in pfil_add_hook()
315 hook->hook_mem_chk = pa->pa_mem_chk; in pfil_add_hook()
316 hook->hook_ruleset = pa->pa_ruleset; in pfil_add_hook()
317 hook->hook_flags = pa->pa_flags; in pfil_add_hook()
318 hook->hook_type = pa->pa_type; in pfil_add_hook()
319 hook->hook_modname = pa->pa_modname; in pfil_add_hook()
320 hook->hook_rulname = pa->pa_rulname; in pfil_add_hook()
324 if (strcmp(pa->pa_modname, list->hook_modname) == 0 && in pfil_add_hook()
325 strcmp(pa->pa_rulname, list->hook_rulname) == 0) { in pfil_add_hook()
327 pa->pa_modname, pa->pa_rulname); in pfil_add_hook()
336 pfil_unlink(struct pfil_link_args *pa, pfil_head_t head, pfil_hook_t hook) in pfil_unlink() argument
342 if (pa->pa_flags & PFIL_IN) { in pfil_unlink()
350 if (pa->pa_flags & PFIL_OUT) { in pfil_unlink()
372 pfil_link(struct pfil_link_args *pa) in pfil_link() argument
379 MPASS(pa->pa_version == PFIL_VERSION); in pfil_link()
381 if ((pa->pa_flags & (PFIL_IN | PFIL_UNLINK)) == PFIL_IN) in pfil_link()
385 if ((pa->pa_flags & (PFIL_OUT | PFIL_UNLINK)) == PFIL_OUT) in pfil_link()
391 if (pa->pa_flags & PFIL_HEADPTR) in pfil_link()
392 head = pa->pa_head; in pfil_link()
395 if (strcmp(pa->pa_headname, head->head_name) == 0) in pfil_link()
397 if (pa->pa_flags & PFIL_HOOKPTR) in pfil_link()
398 hook = pa->pa_hook; in pfil_link()
401 if (strcmp(pa->pa_modname, hook->hook_modname) == 0 && in pfil_link()
402 strcmp(pa->pa_rulname, hook->hook_rulname) == 0) in pfil_link()
409 if (pa->pa_flags & PFIL_UNLINK) in pfil_link()
410 return (pfil_unlink(pa, head, hook)); in pfil_link()
413 ((hook->hook_flags & pa->pa_flags) & ~head->head_flags)) { in pfil_link()
418 if (pa->pa_flags & PFIL_IN) in pfil_link()
424 if (pa->pa_flags & PFIL_OUT) in pfil_link()
431 if (pa->pa_flags & PFIL_IN) { in pfil_link()
437 if (pa->pa_flags & PFIL_APPEND) in pfil_link()
444 if (pa->pa_flags & PFIL_OUT) { in pfil_link()
450 if (pa->pa_flags & PFIL_APPEND) in pfil_link()