Lines Matching full:hook
94 /* Information we store for each hook */
96 hook_p hook; member
126 /* Register hook */ in ng_ipfw_mod_event()
152 ng_ipfw_newhook(node_p node, hook_p hook, const char *name) in ng_ipfw_newhook() argument
173 /* Allocate memory for this hook's private data */ in ng_ipfw_newhook()
178 hpriv->hook = hook; in ng_ipfw_newhook()
181 NG_HOOK_SET_PRIVATE(hook, hpriv); in ng_ipfw_newhook()
191 ng_ipfw_connect(hook_p hook) in ng_ipfw_connect() argument
193 NG_HOOK_FORCE_QUEUE(hook); in ng_ipfw_connect()
197 /* Look up hook by name */
201 uint32_t n; /* numeric representation of hook */ in ng_ipfw_findhook()
210 /* Look up hook by rule number */
214 hook_p hook; in ng_ipfw_findhook1() local
217 LIST_FOREACH(hook, &node->nd_hooks, hk_hooks) { in ng_ipfw_findhook1()
218 hpriv = NG_HOOK_PRIVATE(hook); in ng_ipfw_findhook1()
219 if (NG_HOOK_IS_VALID(hook) && (hpriv->cookie == cookie)) in ng_ipfw_findhook1()
220 return (hook); in ng_ipfw_findhook1()
227 ng_ipfw_rcvdata(hook_p hook, item_p item) in ng_ipfw_rcvdata() argument
287 hook_p hook; in ng_ipfw_input() local
291 * Node must be loaded and corresponding hook must be present. in ng_ipfw_input()
294 (hook = ng_ipfw_findhook1(fw_node, fwa->rule.info & IPFW_INFO_MASK)) == NULL) in ng_ipfw_input()
295 return (ESRCH); /* no hook associated with this rule */ in ng_ipfw_input()
329 NG_SEND_DATA_ONLY(error, hook, m); in ng_ipfw_input()
349 ng_ipfw_disconnect(hook_p hook) in ng_ipfw_disconnect() argument
351 const hpriv_p hpriv = NG_HOOK_PRIVATE(hook); in ng_ipfw_disconnect()
354 NG_HOOK_SET_PRIVATE(hook, NULL); in ng_ipfw_disconnect()