Home
last modified time | relevance | path

Searched refs:hook (Results 1 – 25 of 193) sorted by relevance

12345678

/dragonfly/sys/netgraph7/
H A Dnetgraph.h142 #define _NG_HOOK_NAME(hook) ((hook)->hk_name) argument
143 #define _NG_HOOK_UNREF(hook) ng_unref_hook(hook) argument
147 #define _NG_HOOK_PRIVATE(hook) ((hook)->hk_private) argument
294 #define NG_HOOK_REF(hook) _ng_hook_ref(hook, _NN_) argument
295 #define NG_HOOK_NAME(hook) _ng_hook_name(hook, _NN_) argument
303 #define NG_HOOK_NODE(hook) _ng_hook_node(hook, _NN_) argument
311 #define NG_HOOK_REF(hook) _NG_HOOK_REF(hook) argument
312 #define NG_HOOK_NAME(hook) _NG_HOOK_NAME(hook) argument
313 #define NG_HOOK_UNREF(hook) _NG_HOOK_UNREF(hook) argument
320 #define NG_HOOK_NODE(hook) _NG_HOOK_NODE(hook) argument
[all …]
H A Dng_sample.c127 hook_p hook; member
230 xxxp->channel[chan].hook = hook; in ng_xxx_newhook()
235 xxxp->downstream_hook.hook = hook; in ng_xxx_newhook()
239 xxxp->debughook = hook; in ng_xxx_newhook()
338 if (NG_HOOK_PRIVATE(hook)) { in ng_xxx_rcvdata()
380 if (hook == xxxp->downstream_hook.hook) { in ng_xxx_rcvdata()
451 ng_xxx_connect(hook_p hook) argument
469 if (NG_HOOK_PRIVATE(hook)) {
478 NG_HOOK_FORCE_QUEUE(hook);
493 if (NG_HOOK_PRIVATE(hook))
[all …]
H A Dng_vlan.c132 hook_p hook; member
180 priv->downstream_hook = hook; in ng_vlan_newhook()
182 priv->nomatch_hook = hook; in ng_vlan_newhook()
201 hook_p hook; in ng_vlan_rcvmsg() local
223 hook = ng_findhook(node, vf->hook); in ng_vlan_rcvmsg()
224 if (hook == NULL) { in ng_vlan_rcvmsg()
252 f->hook = hook; in ng_vlan_rcvmsg()
254 NG_HOOK_SET_PRIVATE(hook, f); in ng_vlan_rcvmsg()
268 if (hook == NULL || in ng_vlan_rcvmsg()
292 strncpy(vf->hook, NG_HOOK_NAME(f->hook), in ng_vlan_rcvmsg()
[all …]
H A Dng_tag.c308 NG_HOOK_SET_PRIVATE(hook, hip); in ng_tag_newhook()
360 hook_p hook; in ng_tag_rcvmsg() local
382 hook_p hook; in ng_tag_rcvmsg() local
403 hook_p hook; in ng_tag_rcvmsg() local
427 hook_p hook; in ng_tag_rcvmsg() local
454 hook_p hook; in ng_tag_rcvmsg() local
607 ng_tag_disconnect(hook_p hook) in ng_tag_disconnect() argument
610 node_p node = NG_HOOK_NODE(hook); in ng_tag_disconnect()
618 if (priv->hi_match == hook) in ng_tag_disconnect()
620 if (priv->hi_nonmatch == hook) in ng_tag_disconnect()
[all …]
H A Dng_ipfw.c87 hook_p hook; member
170 hpriv->hook = hook; in ng_ipfw_newhook()
173 NG_HOOK_SET_PRIVATE(hook, hpriv); in ng_ipfw_newhook()
183 ng_ipfw_connect(hook_p hook) in ng_ipfw_connect() argument
185 NG_HOOK_FORCE_QUEUE(hook); in ng_ipfw_connect()
206 hook_p hook; in ng_ipfw_findhook1() local
210 hpriv = NG_HOOK_PRIVATE(hook); in ng_ipfw_findhook1()
264 hook_p hook; in ng_ipfw_input() local
306 NG_SEND_DATA_ONLY(error, hook, m); in ng_ipfw_input()
326 ng_ipfw_disconnect(hook_p hook) in ng_ipfw_disconnect() argument
[all …]
H A Dng_split.c119 *localhook = hook; in ng_split_newhook()
120 NG_HOOK_SET_PRIVATE(hook, localhook); in ng_split_newhook()
129 ng_split_rcvdata(hook_p hook, item_p item) in ng_split_rcvdata() argument
131 const priv_p priv = NG_NODE_PRIVATE(NG_HOOK_NODE(hook)); in ng_split_rcvdata()
134 if (hook == priv->out) { in ng_split_rcvdata()
138 } else if ((hook == priv->in) && (priv->mixed != NULL)) { in ng_split_rcvdata()
166 ng_split_disconnect(hook_p hook) in ng_split_disconnect() argument
168 hook_p *localhook = NG_HOOK_PRIVATE(hook); in ng_split_disconnect()
172 if ((NG_NODE_NUMHOOKS(NG_HOOK_NODE(hook)) == 0) in ng_split_disconnect()
173 && (NG_NODE_IS_VALID(NG_HOOK_NODE(hook)))) { in ng_split_disconnect()
[all …]
/dragonfly/sys/netgraph/etf/
H A Dng_etf.c133 hook_p hook; member
216 etfp->downstream_hook.hook = hook; in ng_etf_newhook()
221 etfp->nomatch_hook.hook = hook; in ng_etf_newhook()
235 hpriv->hook = hook; in ng_etf_newhook()
294 hook_p hook; in ng_etf_rcvmsg() local
305 if (hook == NULL) { in ng_etf_rcvmsg()
311 if (hook == etfp->downstream_hook.hook) { in ng_etf_rcvmsg()
408 if (hook == etfp->downstream_hook.hook) { in ng_etf_rcvdata()
423 || ((fil == NULL) && (hook != etfp->nomatch_hook.hook))) { in ng_etf_rcvdata()
482 if (hook == etfp->downstream_hook.hook) { in ng_etf_disconnect()
[all …]
/dragonfly/sys/netgraph/
H A Dnetgraph.h83 #define NG_HOOK_REF(hook) atomic_add_int(&(hook)->refs, 1) argument
84 #define NG_HOOK_NAME(hook) ((hook)->name) argument
85 #define NG_HOOK_UNREF(hook) ng_unref_hook(hook) argument
89 #define NG_HOOK_PRIVATE(hook) ((hook)->private) argument
90 #define NG_HOOK_NOT_VALID(hook) ((hook)->flags & HK_INVALID) argument
91 #define NG_HOOK_IS_VALID(hook) (!((hook)->flags & HK_INVALID)) argument
92 #define NG_HOOK_NODE(hook) ((hook)->node) /* only rvalue! */ argument
93 #define NG_HOOK_PEER(hook) ((hook)->peer) /* only rvalue! */ argument
96 #define NG_PEER_NODE(hook) NG_HOOK_NODE(NG_HOOK_PEER(hook)) argument
97 #define NG_PEER_HOOK_NAME(hook) NG_HOOK_NAME(NG_HOOK_PEER(hook)) argument
[all …]
H A Dng_sample.c120 hook_p hook; member
231 xxxp->channel[chan].hook = hook; in ng_xxx_newhook()
236 xxxp->downstream_hook.hook = hook; in ng_xxx_newhook()
240 xxxp->debughook = hook; in ng_xxx_newhook()
241 hook->private = NULL; in ng_xxx_newhook()
327 if (hook->private) { in ng_xxx_rcvdata()
352 if (hook->private) { in ng_xxx_rcvdataq()
392 if (hook == xxxp->downstream_hook.hook) in ng_xxx_rcvdataq()
462 if (hook->private) in ng_xxx_disconnect()
463 ((struct XXX_hookinfo *) (hook->private))->hook = NULL; in ng_xxx_disconnect()
[all …]
/dragonfly/sys/netgraph7/etf/
H A Dng_etf.c131 hook_p hook; member
209 etfp->downstream_hook.hook = hook; in ng_etf_newhook()
214 etfp->nomatch_hook.hook = hook; in ng_etf_newhook()
228 hpriv->hook = hook; in ng_etf_newhook()
288 hook_p hook; in ng_etf_rcvmsg() local
299 if (hook == NULL) { in ng_etf_rcvmsg()
305 if (hook == etfp->downstream_hook.hook) { in ng_etf_rcvmsg()
405 if (hook == etfp->downstream_hook.hook) { in ng_etf_rcvdata()
420 || ((fil == NULL) && (hook != etfp->nomatch_hook.hook))) { in ng_etf_rcvdata()
474 if (hook == etfp->downstream_hook.hook) { in ng_etf_disconnect()
[all …]
/dragonfly/sys/netgraph7/netgraph/
H A Dng_base.c250 hook = kmalloc(sizeof(*hook), M_NETGRAPH_HOOK, \
268 hook_p hook; in ng_alloc_hook() local
272 if (hook) { in ng_alloc_hook()
282 if (hook) { in ng_alloc_hook()
341 #define NG_ALLOC_HOOK(hook) _NG_ALLOC_HOOK(hook) argument
1820 *lasthook = (hook ? NG_HOOK_PEER(hook) : NULL); in ng_path2noderef()
2030 if (hook && NG_HOOK_NOT_VALID(hook)) { in ng_apply_item()
2064 if (((!hook) || (!(rcvmsg = hook->hk_rcvmsg))) && in ng_apply_item()
2102 if (hook) in ng_apply_item()
2827 _NG_HOOK_NAME(hook), hook->hk_refs); in dumphook()
[all …]
/dragonfly/sys/netgraph/tee/
H A Dng_tee.c65 hook_p hook; member
178 sc->right.hook = hook; in ngt_newhook()
182 sc->left.hook = hook; in ngt_newhook()
184 hook->private = &sc->left; in ngt_newhook()
186 sc->right2left.hook = hook; in ngt_newhook()
190 sc->left2right.hook = hook; in ngt_newhook()
360 if (privdata->left.hook && privdata->right.hook) in ngt_rmnode()
361 ng_bypass(privdata->left.hook, privdata->right.hook); in ngt_rmnode()
374 ngt_disconnect(hook_p hook) in ngt_disconnect() argument
379 hinfo->hook = NULL; in ngt_disconnect()
[all …]
/dragonfly/sys/netgraph7/bpf/
H A Dng_bpf.c84 hook_p hook; member
237 ng_bpf_addrefs(hook_p hook, void* arg) in ng_bpf_addrefs() argument
239 hinfo_p hip = NG_HOOK_PRIVATE(hook); in ng_bpf_addrefs()
252 hinfo_p hip = NG_HOOK_PRIVATE(hook); in ng_bpf_remrefs()
277 hip->hook = hook; in ng_bpf_newhook()
278 NG_HOOK_SET_PRIVATE(hook, hip); in ng_bpf_newhook()
286 NG_HOOK_SET_PRIVATE(hook, NULL); in ng_bpf_newhook()
313 hook_p hook; in ng_bpf_rcvmsg() local
334 hook_p hook; in ng_bpf_rcvmsg() local
361 hook_p hook; in ng_bpf_rcvmsg() local
[all …]
/dragonfly/sys/netgraph7/cisco/
H A Dng_cisco.c215 sc->downstream.hook = hook; in cisco_newhook()
222 sc->inet.hook = hook; in cisco_newhook()
225 sc->inet6.hook = hook; in cisco_newhook()
228 sc->ipx.hook = hook; in cisco_newhook()
229 NG_HOOK_SET_PRIVATE(hook, &sc->ipx); in cisco_newhook()
408 cisco_disconnect(hook_p hook) in cisco_disconnect() argument
414 if ((pep = NG_HOOK_PRIVATE(hook))) { in cisco_disconnect()
415 pep->hook = NULL; in cisco_disconnect()
424 ng_rmnode_self(NG_HOOK_NODE(hook)); in cisco_disconnect()
512 if (sc->inet.hook == NULL) in cisco_input()
[all …]
/dragonfly/sys/netgraph/netgraph/
H A Dng_base.c456 hook_p hook; in ng_cutlinks() local
702 hook_p hook; in ng_add_hook() local
794 hook_p hook; in ng_findhook() local
935 hook_p hook; in ng_mkpeer() local
978 hook_p hook; in ng_con_nodes() local
1118 hook_p hook; in ng_path2node() local
1307 hook_p hook; in ng_generic_msg() local
1350 hook_p hook; in ng_generic_msg() local
1684 if (hook && (hook->flags & HK_INVALID) == 0) { in ng_send_data()
1711 if (hook && (hook->flags & HK_INVALID) == 0) { in ng_send_dataq()
[all …]
/dragonfly/sys/netgraph/bpf/
H A Dng_bpf.c75 hook_p hook; member
239 hip->hook = hook; in ng_bpf_newhook()
240 hook->private = hip; in ng_bpf_newhook()
246 hook->private = NULL; in ng_bpf_newhook()
273 hook_p hook; in ng_bpf_rcvmsg() local
294 hook_p hook; in ng_bpf_rcvmsg() local
321 hook_p hook; in ng_bpf_rcvmsg() local
375 const hinfo_p hip = hook->private; in ng_bpf_rcvdata()
452 ng_bpf_disconnect(hook_p hook) in ng_bpf_disconnect() argument
461 if (hook->node->numhooks == 0) in ng_bpf_disconnect()
[all …]
/dragonfly/sys/netgraph/pppoe/
H A Dng_pppoe.c144 hook_p hook; member
237 hook_p hook; in get_new_sid() local
406 hook_p hook; in pppoe_match_svc() local
441 return (hook ? hook : allhook); in pppoe_match_svc()
474 return (hook); in pppoe_findsession()
495 return (hook); in pppoe_finduniq()
568 sp->hook = hook; in ng_pppoe_newhook()
613 ourmsg->hook[sizeof(ourmsg->hook) - 1] = '\0'; in ng_pppoe_rcvmsg()
618 && strcmp(hook->name, ourmsg->hook) == 0) in ng_pppoe_rcvmsg()
1563 hook_p hook = sp->hook; in sendpacket() local
[all …]
/dragonfly/sys/netgraph7/frame_relay/
H A Dng_frame_relay.c261 if (sc->downstream.hook) in ngfrm_newhook()
266 sc->downstream.hook = hook; in ngfrm_newhook()
295 if (sc->channel[ctxnum].hook != NULL) in ngfrm_newhook()
303 sc->channel[ctxnum].hook = hook; in ngfrm_newhook()
329 ngfrm_rcvdata(hook_p hook, item_p item) in ngfrm_rcvdata() argument
352 sc = NG_NODE_PRIVATE(NG_HOOK_NODE(hook)); in ngfrm_rcvdata()
355 if ((sc->downstream.hook == NULL) in ngfrm_rcvdata()
496 ngfrm_disconnect(hook_p hook) in ngfrm_disconnect() argument
504 cp->hook = NULL; in ngfrm_disconnect()
512 && (NG_NODE_IS_VALID(NG_HOOK_NODE(hook)))) in ngfrm_disconnect()
[all …]
/dragonfly/sys/netgraph/frame_relay/
H A Dng_frame_relay.c272 if (sc->downstream.hook) in ngfrm_newhook()
276 hook->private = &sc->downstream; in ngfrm_newhook()
277 sc->downstream.hook = hook; in ngfrm_newhook()
314 sc->channel[ctxnum].hook = hook; in ngfrm_newhook()
361 sc = hook->node->private; in ngfrm_rcvdata()
364 if ((sc->downstream.hook == NULL) in ngfrm_rcvdata()
504 ngfrm_disconnect(hook_p hook) in ngfrm_disconnect() argument
506 const sc_p sc = hook->node->private; in ngfrm_disconnect()
512 cp->hook = NULL; in ngfrm_disconnect()
519 if (hook->node->numhooks == 0) in ngfrm_disconnect()
[all …]
/dragonfly/sys/netgraph7/tee/
H A Dng_tee.c67 hook_p hook; member
201 hinfo->hook = hook; in ng_tee_newhook()
203 NG_HOOK_SET_PRIVATE(hook, hinfo); in ng_tee_newhook()
263 if (lasthook == sc->left.hook || lasthook == sc->right.hook) { in ng_tee_rcvmsg()
293 ng_tee_rcvdata(hook_p hook, item_p item) in ng_tee_rcvdata() argument
315 NG_SEND_DATA_ONLY(error, h->hook, m2); in ng_tee_rcvdata()
345 if (privdata->left.hook && privdata->right.hook) in ng_tee_close()
346 ng_bypass(privdata->left.hook, privdata->right.hook); in ng_tee_close()
369 ng_tee_disconnect(hook_p hook) in ng_tee_disconnect() argument
375 hinfo->hook = NULL; in ng_tee_disconnect()
[all …]
/dragonfly/sys/netgraph7/netflow/
H A Dng_netflow.c227 iface->hook = hook; in ng_netflow_newhook()
259 iface->out = hook; in ng_netflow_newhook()
266 priv->export = hook; in ng_netflow_newhook()
350 if (iface->hook == NULL) in ng_netflow_rcvmsg()
379 if (iface->hook == NULL) in ng_netflow_rcvmsg()
451 if (hook == priv->export) { in ng_netflow_rcvdata()
460 if (hook == iface->out) { in ng_netflow_rcvdata()
464 if (iface->hook == NULL) in ng_netflow_rcvdata()
645 if (iface->hook == hook) in ng_netflow_disconnect()
646 iface->hook = NULL; in ng_netflow_disconnect()
[all …]
/dragonfly/sys/netgraph7/hole/
H A Dng_hole.c139 NG_HOOK_SET_PRIVATE(hook, hip); in ngh_newhook()
153 hook_p hook; in ngh_rcvmsg() local
168 hook = ng_findhook(node, (char *)msg->data); in ngh_rcvmsg()
169 if (hook == NULL) { in ngh_rcvmsg()
206 ngh_rcvdata(hook_p hook, item_p item) in ngh_rcvdata() argument
208 const hinfo_p hip = NG_HOOK_PRIVATE(hook); in ngh_rcvdata()
220 ngh_disconnect(hook_p hook) in ngh_disconnect() argument
223 kfree(NG_HOOK_PRIVATE(hook), M_NETGRAPH); in ngh_disconnect()
224 NG_HOOK_SET_PRIVATE(hook, NULL); in ngh_disconnect()
225 if (NG_NODE_NUMHOOKS(NG_HOOK_NODE(hook)) == 0) in ngh_disconnect()
[all …]
/dragonfly/sys/netgraph/one2many/
H A Dng_one2many.c65 hook_p hook; /* netgraph hook */ member
92 #define LINK_NUM(hook) (*(int16_t *)(&(hook)->private)) argument
244 if (link->hook != NULL) in ng_one2many_newhook()
248 LINK_NUM(hook) = linkNum; in ng_one2many_newhook()
249 link->hook = hook; in ng_one2many_newhook()
387 const node_p node = hook->node; in ng_one2many_rcvdata()
395 linkNum = LINK_NUM(hook); in ng_one2many_rcvdata()
457 linkNum = LINK_NUM(hook); in ng_one2many_disconnect()
464 priv->one.hook = NULL; in ng_one2many_disconnect()
472 if (hook->node->numhooks == 0) in ng_one2many_disconnect()
[all …]
/dragonfly/sys/netgraph/rfc1490/
H A Dng_rfc1490.c154 priv->downlink = hook; in ng_rfc1490_newhook()
158 priv->ppp = hook; in ng_rfc1490_newhook()
162 priv->inet = hook; in ng_rfc1490_newhook()
218 const node_p node = hook->node; in ng_rfc1490_rcvdata()
222 if (hook == priv->downlink) { in ng_rfc1490_rcvdata()
285 } else if (hook == priv->ppp) { in ng_rfc1490_rcvdata()
292 } else if (hook == priv->inet) { in ng_rfc1490_rcvdata()
334 if (hook->node->numhooks == 0) in ng_rfc1490_disconnect()
335 ng_rmnode(hook->node); in ng_rfc1490_disconnect()
338 else if (hook == priv->inet) in ng_rfc1490_disconnect()
[all …]
/dragonfly/sys/netgraph7/UI/
H A Dng_UI.c124 priv->downlink = hook; in ng_UI_newhook()
128 priv->uplink = hook; in ng_UI_newhook()
170 ng_UI_rcvdata(hook_p hook, item_p item) in ng_UI_rcvdata() argument
172 const node_p node = NG_HOOK_NODE(hook); in ng_UI_rcvdata()
178 if (hook == priv->downlink) { in ng_UI_rcvdata()
192 } else if (hook == priv->uplink) { in ng_UI_rcvdata()
227 ng_UI_disconnect(hook_p hook) in ng_UI_disconnect() argument
231 if (hook == priv->downlink) in ng_UI_disconnect()
233 else if (hook == priv->uplink) in ng_UI_disconnect()
242 && (NG_NODE_IS_VALID(NG_HOOK_NODE(hook)))) { in ng_UI_disconnect()
[all …]

12345678