Searched refs:hook (Results 51 - 75 of 252) sorted by relevance

1234567891011

/freebsd-current/sys/netgraph/bluetooth/socket/
H A Dng_btsocket_l2cap_raw.c229 * We allow any hook to be connected to the node.
233 ng_btsocket_l2cap_raw_node_newhook(node_p node, hook_p hook, char const *name) argument
243 ng_btsocket_l2cap_raw_node_connect(hook_p hook) argument
245 NG_HOOK_SET_PRIVATE(hook, NULL);
246 NG_HOOK_REF(hook); /* Keep extra reference to the hook */
256 ng_btsocket_l2cap_raw_node_disconnect(hook_p hook) argument
259 * If hook has private information than we must have this hook in
261 * Otherwise hook wa
279 ng_btsocket_l2cap_raw_node_rcvmsg(node_p node, item_p item, hook_p hook) argument
330 ng_btsocket_l2cap_raw_node_rcvdata(hook_p hook, item_p item) argument
351 hook_p hook = NULL; local
1294 ng_btsocket_l2cap_raw_send_ngmsg(hook_p hook, int cmd, void *arg, int arglen) argument
[all...]
/freebsd-current/sys/netgraph/
H A Dng_gif.c99 hook_p lower; /* lower OR orphan hook connection */
174 /* If "lower" hook not connected, let packet continue */
190 /* If "orphan" hook not connected, let packet continue */
214 /* Send out lower/orphan hook */
342 * Check for attaching a new hook.
345 ng_gif_newhook(node_p node, hook_p hook, const char *name) argument
351 /* Divert hook is an alias for lower */
355 /* Which hook? */
370 *hookptr = hook;
377 * We don't really care which hook i
381 ng_gif_connect(hook_p hook) argument
436 ng_gif_rcvdata(hook_p hook, item_p item) argument
512 ng_gif_disconnect(hook_p hook) argument
[all...]
H A Dng_macfilter.c34 * This node type routes packets from the ether hook to either the default hook
36 * hook if it is.
39 * packets on each hook.
255 * Per MAC address info: the hook where to send to, the address
265 hook_p mf_ether_hook; /* Ethernet hook */
314 * to the default hook.
344 * Count the number of matching macs routed to this hook.
396 * Change the upper hook for the given MAC address. If the hook i
527 macfilter_ether_output(hook_p hook, macfilter_p mfp, struct mbuf *m, hook_p *next_hook) argument
568 macfilter_ether_input(hook_p hook, macfilter_p mfp, struct mbuf *m, hook_p *next_hook) argument
639 ng_macfilter_newhook(node_p node, hook_p hook, const char *hookname) argument
786 ng_macfilter_rcvdata(hook_p hook, item_p item) argument
812 ng_macfilter_disconnect(hook_p hook) argument
[all...]
H A Dng_pipe.c37 * lower hook is referenced as downstream, and vice versa. Parameters for
83 /* Per hook info */
85 hook_p hook; member in struct:hookinfo
266 /* Add a hook */
268 ngp_newhook(node_p node, hook_p hook, const char *name) argument
275 priv->upper.hook = hook;
276 NG_HOOK_SET_PRIVATE(hook, &priv->upper);
279 priv->lower.hook = hook;
588 ngp_rcvdata(hook_p hook, item_p item) argument
907 ngp_callout(node_p node, hook_p hook, void *arg1, int arg2) argument
952 ngp_disconnect(hook_p hook) argument
[all...]
H A Dng_lmi.c48 * hook to DLCI 0 or 1023 (as appropriate) of a frame relay link.
51 * by connecting hook "auto0" to DLCI 0 and "auto1023" to DLCI 1023.
97 static int nglmi_checkdata(hook_p hook, struct mbuf *m);
143 static void LMI_ticker(node_p node, hook_p hook, void *arg1, int arg2);
144 static void nglmi_startup_fixed(sc_p sc, hook_p hook);
203 nglmi_newhook(node_p node, hook_p hook, const char *name) argument
208 NG_HOOK_SET_PRIVATE(hook, NULL);
216 sc->lmi_annexA = hook;
217 NG_HOOK_SET_PRIVATE(hook, NG_NODE_PRIVATE(node));
221 nglmi_startup_fixed(sc, hook);
260 LMI_ticker(node_p node, hook_p hook, void *arg1, int arg2) argument
281 nglmi_startup_fixed(sc_p sc, hook_p hook) argument
551 nglmi_rcvdata(hook_p hook, item_p item) argument
733 nglmi_checkdata(hook_p hook, struct mbuf *m) argument
1065 nglmi_disconnect(hook_p hook) argument
[all...]
H A Dng_pppoe.c227 * These have no meaning if there is no hook attached yet.
244 * Information we store for each hook on each node for negotiating the
270 hook_p hook; member in struct:sess_con
314 static void pppoe_ticker(node_p node, hook_p hook, void *arg1, int arg2);
445 * Find a hook that has a service string that matches that
479 sp?sp->hook:NULL, (const char *)(tag + 1));
481 return (sp?sp->hook:NULL);
503 NG_SEND_DATA_ONLY(error, sp->hook, m);
512 * Find a hook, which name equals to given service.
525 return (sp->hook);
620 hook_p hook = NULL; local
645 hook_p hook = NULL; local
708 ng_pppoe_newhook(node_p node, hook_p hook, const char *name) argument
743 ng_pppoe_connect(hook_p hook) argument
784 hook_p hook = NULL; local
1277 hook_p hook = sp->hook; local
1426 ng_pppoe_rcvdata(hook_p hook, item_p item) argument
1575 ng_pppoe_rcvdata_ether(hook_p hook, item_p item) argument
1981 ng_pppoe_rcvdata_debug(hook_p hook, item_p item) argument
2021 ng_pppoe_disconnect(hook_p hook) argument
2119 pppoe_ticker(node_p node, hook_p hook, void *arg1, int arg2) argument
[all...]
H A Dng_vlan_rotate.c187 * Give our ok for a hook to be added.
190 ng_vlanrotate_newhook(node_p node, hook_p hook, const char *name) argument
204 return (EINVAL); /* not a hook we know about */
209 *dst = hook;
371 ng_vlanrotate_rcvdata(hook_p hook, item_p item) argument
373 const vlanrotate_p vrp = NG_NODE_PRIVATE(NG_HOOK_NODE(hook));
383 if (hook == vrp->ordered_hook) {
386 } else if (hook == vrp->original_hook) {
490 ng_vlanrotate_disconnect(hook_p hook) argument
492 const vlanrotate_p vrp = NG_NODE_PRIVATE(NG_HOOK_NODE(hook));
[all...]
H A Dng_bridge.h114 char hook[NG_HOOKSIZ]; /* link where addr can be found */ member in struct:ng_bridge_hostent
122 { "hook", &ng_parse_hookbuf_type }, \
143 char hook[NG_HOOKSIZ]; /* link where addr can be found */ member in struct:ng_bridge_move_host
148 { "hook", &ng_parse_hookbuf_type }, \
H A Dng_ether.c81 hook_p upper; /* upper hook connection */
82 hook_p lower; /* lower hook connection */
83 hook_p orphan; /* orphan hook connection */
251 /* If "lower" hook not connected, let packet continue */
268 /* If "orphan" hook not connected, discard packet */
287 /* If "upper" hook not connected, let packet continue */
291 /* Send it out "upper" hook */
407 * hook ng_ether_attach_p.
450 * Check for attaching a new hook.
453 ng_ether_newhook(node_p node, hook_p hook, cons argument
653 ng_ether_rcvdata(hook_p hook, item_p item) argument
664 ng_ether_rcv_lower(hook_p hook, item_p item) argument
712 ng_ether_rcv_upper(hook_p hook, item_p item) argument
779 ng_ether_disconnect(hook_p hook) argument
[all...]
H A Dng_iface.c44 * a hook for each protocol (IP, AppleTalk, etc). Packets
105 const char *hookname; /* Name for hook */
155 static iffam_p get_iffam_from_hook(priv_p priv, hook_p hook);
232 * Get the family descriptor from the hook
235 get_iffam_from_hook(priv_p priv, hook_p hook) argument
240 if (priv->hooks[k] == hook)
246 * Get the hook from the iffam descriptor
344 * the corresponding hook, if it exists and is connected.
438 hook_p hook; local
442 /* Check address family to determine hook (i
577 ng_iface_newhook(node_p node, hook_p hook, const char *name) argument
683 ng_iface_rcvdata(hook_p hook, item_p item) argument
769 ng_iface_disconnect(hook_p hook) argument
[all...]
H A Dng_socket.c170 hook_p hook; member in struct:hookpriv
179 struct ngshash *hash; /* hash for hook names */
187 #define NGS_FLAG_NOLINGER 1 /* close with last hook */
420 hook_p hook = NULL; local
454 * If exactly one hook exists, just use it.
457 hook = LIST_FIRST(&pcbp->sockdata->node->nd_hooks);
471 /* Find the correct hook from 'hookname' */
472 hook = ng_findhook(pcbp->sockdata->node, hookname);
473 if (hook == NULL) {
483 NG_FWD_ITEM_HOOK(error, item, hook);
794 hook_p hook; local
822 ngs_newhook(node_p node, hook_p hook, const char *name) argument
845 ngs_connect(hook_p hook) argument
872 hook_p hook; local
1011 ngs_rcvdata(hook_p hook, item_p item) argument
1061 ngs_disconnect(hook_p hook) argument
[all...]
H A Dng_car.c65 hook_p hook; /* this (source) hook */ member in struct:hookinfo
66 hook_p dest; /* destination hook */
72 struct ng_car_hookconf conf; /* hook configuration */
73 struct ng_car_hookstats stats; /* hook stats */
85 struct hookinfo upper; /* hook to upper layers */
86 struct hookinfo lower; /* hook to lower layers */
99 void ng_car_q_event(node_p node, hook_p hook, void *arg, int arg2);
207 priv->upper.hook = NULL;
222 priv->lower.hook
244 ng_car_newhook(node_p node, hook_p hook, const char *name) argument
267 ng_car_rcvdata(hook_p hook, item_p item ) argument
590 ng_car_disconnect(hook_p hook) argument
702 ng_car_q_event(node_p node, hook_p hook, void *arg, int arg2) argument
[all...]
H A Dng_pppoe.h46 * Netgraph hook constants etc.
76 NGM_PPPOE_OFFER = 4, /* Server, hook X should respond (*) */
119 * Matching PADI requests will be passed up the named hook.
125 * named hook. The session will then issue the appropriate PADO
129 char hook[NG_HOOKSIZ]; /* hook to monitor on */ member in struct:ngpppoe_init_data
136 { "hook", &ng_parse_hookbuf_type }, \
143 * (to report which hook has failed or connected). The message is sent
147 char hook[NG_HOOKSIZ]; /* hook associate member in struct:ngpppoe_sts
160 char hook[NG_HOOKSIZ]; /* hook associated with event session */ member in struct:ngpppoe_maxp
[all...]
/freebsd-current/tests/sys/netgraph/
H A Dhub.c203 char hook[20]; local
205 snprintf(hook, sizeof(hook), "hook%d", i);
206 ng_connect(".", hook, "hub:", hook);
208 ng_send_data(hook, msg, sizeof(msg));
H A Dutil.h58 _ng_rmhook(char const *path, char const *hook,
71 void ng_register_data(char const *hook, ng_data_handler_t proc);
73 _ng_send_data(char const *hook, void const *, size_t,
/freebsd-current/usr.sbin/bsnmpd/modules/snmp_netgraph/
H A Dsnmp_netgraph.h67 int ng_send_data(const char *hook, const void *sndbuf, size_t sndlen);
70 const char *hook, const char *peerhook);
82 ng_ID_t ng_next_node_id(ng_ID_t node, const char *type, const char *hook);
H A Dsnmp_netgraph.c87 * So we must keep a list of hook names and dispatch functions.
101 * Data messages are dispatched by hook names.
104 char hook[NG_HOOKSIZ]; member in struct:datareg
171 * Register a function for hook data.
174 ng_register_hook(const struct lmodule *mod, const char *hook, argument
182 strcpy(d->hook, hook);
193 * Unregister a hook function
438 * Send a data message to a given hook.
441 ng_send_data(const char *hook, cons argument
454 char hook[NG_HOOKSIZ]; local
672 ng_next_node_id_internal(ng_ID_t node, const char *type, const char *hook, int skip_tee) argument
722 ng_next_node_id(ng_ID_t node, const char *type, const char *hook) argument
728 ng_mkpeer_id(ng_ID_t id, const char *nodename, const char *type, const char *hook, const char *peerhook) argument
787 ng_rmhook_id(ng_ID_t id, const char *hook) argument
803 ng_rmhook_tee_id(ng_ID_t node, const char *hook) argument
860 ng_peer_hook_id(ng_ID_t node, const char *hook, char *peerhook) argument
1469 find_hook(int32_t id, const u_char *hook, size_t hooklen, struct linkinfo *info) argument
1625 u_char *hook; local
[all...]
/freebsd-current/sys/netgraph/bluetooth/l2cap/
H A Dng_l2cap_main.c155 * Give our OK for a hook to be added. HCI layer is connected to the HCI
156 * (NG_L2CAP_HOOK_HCI) hook. As per specification L2CAP layer MUST provide
160 * NG_L2CAP_HOOK_ORPHAN hook. Control node/application is connected to
161 * control (NG_L2CAP_HOOK_CTL) hook.
165 ng_l2cap_newhook(node_p node, hook_p hook, char const *name) argument
182 *h = hook;
188 * Give our final OK to connect hook. Nothing to do here.
192 ng_l2cap_connect(hook_p hook) argument
194 ng_l2cap_p l2cap = (ng_l2cap_p) NG_NODE_PRIVATE(NG_HOOK_NODE(hook));
197 if (hook
223 ng_l2cap_disconnect(hook_p hook) argument
704 ng_l2cap_rcvdata(hook_p hook, item_p item) argument
[all...]
/freebsd-current/contrib/libxo/xo/
H A DMakefile.am41 install-data-hook:
/freebsd-current/contrib/kyua/bootstrap/
H A Dplain_helpers.cpp92 int (*hook)(int, char**); member in struct:__anon854::helper
140 return iter->hook(argc, argv);
/freebsd-current/contrib/libxo/xopo/
H A DMakefile.am41 install-data-hook:
/freebsd-current/lib/libnetgraph/
H A Dsock.c213 NgRecvData(int ds, u_char * buf, size_t len, char *hook) argument
230 /* Copy hook name */
231 if (hook != NULL)
232 strlcpy(hook, from->sg_data, NG_HOOKSIZ);
236 NGLOGX("READ %s from hook \"%s\" (%d bytes)",
250 NgAllocRecvData(int ds, u_char **buf, char *hook) argument
259 if ((len = NgRecvData(ds, *buf, len, hook)) < 0)
266 * out the corresponding node on the specified hook.
270 NgSendData(int ds, const char *hook, const u_char * buf, size_t len) argument
276 /* Set up destination hook */
[all...]
/freebsd-current/sys/netgraph/bluetooth/hci/
H A Dng_hci_main.c192 * Give our OK for a hook to be added. Unit driver is connected to the driver
193 * (NG_HCI_HOOK_DRV) hook. Upper layer protocols are connected to appropriate
198 ng_hci_newhook(node_p node, hook_p hook, char const *name) argument
217 *h = hook;
223 * Give our final OK to connect hook
227 ng_hci_connect(hook_p hook) argument
229 ng_hci_unit_p unit = (ng_hci_unit_p) NG_NODE_PRIVATE(NG_HOOK_NODE(hook));
231 if (hook != unit->drv) {
232 if (hook == unit->acl) {
233 NG_HOOK_SET_RCVMSG(hook, ng_hci_upper_rcvms
255 ng_hci_disconnect(hook_p hook) argument
706 ng_hci_drv_rcvdata(hook_p hook, item_p item) argument
789 ng_hci_acl_rcvdata(hook_p hook, item_p item) argument
906 ng_hci_sco_rcvdata(hook_p hook, item_p item) argument
1025 ng_hci_raw_rcvdata(hook_p hook, item_p item) argument
[all...]
/freebsd-current/sys/netgraph/netflow/
H A Dng_netflow.c280 ng_netflow_newhook(node_p node, hook_p hook, const char *name) argument
284 if (strncmp(name, NG_NETFLOW_HOOK_DATA, /* an iface hook? */
299 /* See if hook is already connected */
300 if (priv->ifaces[ifnum].hook != NULL)
305 /* Link private info and hook together */
306 NG_HOOK_SET_PRIVATE(hook, iface);
307 iface->hook = hook;
331 /* See if hook is already connected */
337 /* Link private info and hook togethe
586 ng_netflow_rcvdata(hook_p hook, item_p item) argument
1033 ng_netflow_disconnect(hook_p hook) argument
[all...]
/freebsd-current/lib/libcam/
H A Dcamlib.h168 int (*arg_get)(void *hook, char *field_name),
173 int (*arg_get)(void *hook, char *field_name),
176 int (*arg_get)(void *hook, char *field_name),

Completed in 250 milliseconds

1234567891011