/dragonfly/sys/netgraph/mppc/ |
H A D | ng_mppc.c | 214 hookPtr = &priv->xmit.hook; in ng_mppc_newhook() 216 hookPtr = &priv->recv.hook; in ng_mppc_newhook() 225 *hookPtr = hook; in ng_mppc_newhook() 356 const node_p node = hook->node; in ng_mppc_rcvdata() 362 if (hook == priv->xmit.hook) { in ng_mppc_rcvdata() 377 if (hook == priv->recv.hook) { in ng_mppc_rcvdata() 436 ng_mppc_disconnect(hook_p hook) in ng_mppc_disconnect() argument 442 if (hook == priv->xmit.hook) in ng_mppc_disconnect() 443 priv->xmit.hook = NULL; in ng_mppc_disconnect() 444 if (hook == priv->recv.hook) in ng_mppc_disconnect() [all …]
|
/dragonfly/sys/netgraph/tty/ |
H A D | ng_tty.c | 88 hook_p hook; /* Netgraph hook */ member 350 if (!sc->hook) in ngt_input() 391 error = ng_queue_data(sc->hook, m, NULL); in ngt_input() 509 if (sc->hook) in ngt_newhook() 511 sc->hook = hook; in ngt_newhook() 522 ngt_disconnect(hook_p hook) in ngt_disconnect() argument 524 const sc_p sc = hook->node->private; in ngt_disconnect() 528 if (hook != sc->hook) in ngt_disconnect() 530 sc->hook = NULL; in ngt_disconnect() 571 const sc_p sc = hook->node->private; in ngt_rcvdata() [all …]
|
/dragonfly/sys/netgraph7/async/ |
H A D | ng_async.c | 263 NG_HOOK_FORCE_WRITER(hook); in nga_newhook() 274 NG_HOOK_FORCE_WRITER(hook); in nga_newhook() 281 *hookp = hook; in nga_newhook() 289 nga_rcvdata(hook_p hook, item_p item) in nga_rcvdata() argument 293 if (hook == sc->sync) in nga_rcvdata() 295 if (hook == sc->async) in nga_rcvdata() 405 nga_disconnect(hook_p hook) in nga_disconnect() argument 410 if (hook == sc->async) in nga_disconnect() 412 else if (hook == sc->sync) in nga_disconnect() 422 && (NG_NODE_IS_VALID(NG_HOOK_NODE(hook)))) in nga_disconnect() [all …]
|
/dragonfly/sys/netgraph7/bridge/ |
H A D | ng_bridge.c | 91 hook_p hook; /* netgraph hook */ member 140 #define LINK_NUM(hook) (*(u_int16_t *)(&(hook)->private)) argument 368 priv->links[linkNum]->hook = hook; in ng_bridge_newhook() 369 NG_HOOK_SET_PRIVATE(hook, (void *)linkNum); in ng_bridge_newhook() 517 ng_bridge_rcvdata(hook_p hook, item_p item) in ng_bridge_rcvdata() argument 519 const node_p node = NG_HOOK_NODE(hook); in ng_bridge_rcvdata() 531 linkNum = (intptr_t)NG_HOOK_PRIVATE(hook); in ng_bridge_rcvdata() 605 NG_HOOK_NAME(hook), suffix); in ng_bridge_rcvdata() 781 ng_bridge_disconnect(hook_p hook) in ng_bridge_disconnect() argument 787 linkNum = (intptr_t)NG_HOOK_PRIVATE(hook); in ng_bridge_disconnect() [all …]
|
/dragonfly/sys/netgraph/echo/ |
H A D | ng_echo.c | 100 nge_rcvdata(hook_p hook, struct mbuf *m, meta_p meta) in nge_rcvdata() argument 104 NG_SEND_DATA(error, hook, m, meta); in nge_rcvdata() 112 nge_disconnect(hook_p hook) in nge_disconnect() argument 114 if (hook->node->numhooks == 0) in nge_disconnect() 115 ng_rmnode(hook->node); in nge_disconnect()
|
/dragonfly/sys/netgraph7/bluetooth/hci/ |
H A D | ng_hci_ulpi.c | 91 if (hook != unit->sco) { in ng_hci_lp_con_req() 158 if (hook == unit->acl) in ng_hci_lp_acl_con_req() 168 if (hook != NULL && NG_HOOK_IS_VALID(hook)) { in ng_hci_lp_acl_con_req() 196 hook); in ng_hci_lp_acl_con_req() 282 if (hook == unit->acl) in ng_hci_lp_acl_con_req() 641 hook_p hook = NULL; in ng_hci_lp_con_ind() local 650 hook = unit->acl; in ng_hci_lp_con_ind() 652 hook = unit->sco; in ng_hci_lp_con_ind() 654 if (hook != NULL && NG_HOOK_IS_VALID(hook)) { in ng_hci_lp_con_ind() 815 if (hook == unit->acl) in ng_hci_lp_con_rsp() [all …]
|
/dragonfly/sys/netgraph/l2tp/ |
H A D | ng_l2tp.c | 352 priv->ctrl = hook; in ng_l2tp_newhook() 356 priv->lower = hook; in ng_l2tp_newhook() 472 hook_p hook; in ng_l2tp_rcvmsg() local 491 if (hook == NULL) { in ng_l2tp_rcvmsg() 505 hook_p hook; in ng_l2tp_rcvmsg() local 522 if (hook == NULL) { in ng_l2tp_rcvmsg() 602 if (hook == priv->ctrl) { in ng_l2tp_rcvdata() 657 if (hook == priv->ctrl) in ng_l2tp_disconnect() 688 hook_p hook = NULL; in ng_l2tp_recv_lower() local 775 if (hook == NULL) { in ng_l2tp_recv_lower() [all …]
|
/dragonfly/sys/netgraph7/bluetooth/drivers/bt3c/ |
H A D | ng_bt3c_pccard.c | 301 if (sc->hook != NULL) in ng_bt3c_newhook() 304 sc->hook = hook; in ng_bt3c_newhook() 314 ng_bt3c_connect(hook_p hook) in ng_bt3c_connect() argument 318 if (hook != sc->hook) { in ng_bt3c_connect() 319 sc->hook = NULL; in ng_bt3c_connect() 324 NG_HOOK_FORCE_QUEUE(NG_HOOK_PEER(hook)); in ng_bt3c_connect() 334 ng_bt3c_disconnect(hook_p hook) in ng_bt3c_disconnect() argument 344 if (hook != sc->hook) in ng_bt3c_disconnect() 350 sc->hook = NULL; in ng_bt3c_disconnect() 550 if (hook != sc->hook) { in ng_bt3c_rcvdata() [all …]
|
/dragonfly/contrib/gcc-8.0/gcc/ |
H A D | target.def | 1 /* Target hook definitions. 799 hook.", 811 hook.", 926 `print_operand' hook. */ 928 not this hook. */ 1132 "The hook can be used to initialize data used by the previous hook.", 2366 obtained using this hook:\n\ 3285 hook is the same as the @code{TARGET_VALID_POINTER_MODE} target hook,\n\ 3313 hook is the same as the @code{TARGET_LEGITIMIZE_ADDRESS} target hook,\n\ 4847 which is the default value for this hook. You can define this hook to\n\ [all …]
|
/dragonfly/sys/netgraph7/ |
H A D | ng_device.c | 91 struct ng_hook *hook; member 240 ng_device_newhook(node_p node, hook_p hook, const char *name) in ng_device_newhook() argument 247 if (priv->hook != NULL) in ng_device_newhook() 250 priv->hook = hook; in ng_device_newhook() 259 ng_device_rcvdata(hook_p hook, item_p item) in ng_device_rcvdata() argument 261 priv_p priv = NG_NODE_PRIVATE(NG_HOOK_NODE(hook)); in ng_device_rcvdata() 293 ng_device_disconnect(hook_p hook) in ng_device_disconnect() argument 295 priv_p priv = NG_NODE_PRIVATE(NG_HOOK_NODE(hook)); in ng_device_disconnect() 309 ng_rmnode_self(NG_HOOK_NODE(hook)); in ng_device_disconnect() 469 NG_SEND_DATA_ONLY(error, priv->hook, m); in ngdwrite()
|
H A D | ng_ip_input.c | 118 ngipi_rcvdata(hook_p hook, item_p item) in ngipi_rcvdata() argument 133 ngipi_disconnect(hook_p hook) in ngipi_disconnect() argument 135 if (NG_NODE_NUMHOOKS(NG_HOOK_NODE(hook)) == 0) in ngipi_disconnect() 136 ng_rmnode_self(NG_HOOK_NODE(hook)); in ngipi_disconnect()
|
/dragonfly/contrib/dhcpcd/hooks/ |
H A D | dhcpcd-run-hooks | 11 state_dir=/var/run/dhcpcd/hook-state 336 for hook in \ 337 /etc/dhcpcd.enter-hook \ 339 /etc/dhcpcd.exit-hook 341 case "$hook" in 345 case "$hook" in 351 if [ -f "$hook" ]; then 352 . "$hook"
|
/dragonfly/lib/libnetgraph7/ |
H A D | sock.c | 212 NgRecvData(int ds, u_char * buf, size_t len, char *hook) in NgRecvData() argument 230 if (hook != NULL) in NgRecvData() 231 strlcpy(hook, from->sg_data, NG_HOOKSIZ); in NgRecvData() 249 NgAllocRecvData(int ds, u_char **buf, char *hook) in NgAllocRecvData() argument 258 if ((len = NgRecvData(ds, *buf, len, hook)) < 0) in NgAllocRecvData() 269 NgSendData(int ds, const char *hook, const u_char * buf, size_t len) in NgSendData() argument 277 strlcpy(sg->sg_data, hook, NG_HOOKSIZ); in NgSendData() 282 NGLOGX("WRITE PACKET to hook \"%s\" (%d bytes)", hook, len); in NgSendData()
|
/dragonfly/usr.sbin/ngctl/ |
H A D | write.c | 57 const char *hook; in WriteCmd() local 66 hook = av[1]; in WriteCmd() 99 sag->sg_len = 3 + strlen(hook); in WriteCmd() 101 strlcpy(sag->sg_data, hook, sizeof(sagbuf) - 2); in WriteCmd() 104 warn("writing to hook \"%s\"", hook); in WriteCmd()
|
/dragonfly/sys/netgraph7/ether/ |
H A D | ng_ether.c | 405 *hookptr = hook; in ng_ether_newhook() 573 ng_ether_rcvdata(hook_p hook, item_p item) in ng_ether_rcvdata() argument 575 const node_p node = NG_HOOK_NODE(hook); in ng_ether_rcvdata() 582 if (hook == priv->lower || hook == priv->orphan) in ng_ether_rcvdata() 584 if (hook == priv->upper) in ng_ether_rcvdata() 703 ng_ether_disconnect(hook_p hook) in ng_ether_disconnect() argument 707 if (hook == priv->upper) { in ng_ether_disconnect() 711 } else if (hook == priv->lower) in ng_ether_disconnect() 713 else if (hook == priv->orphan) in ng_ether_disconnect() 717 if ((NG_NODE_NUMHOOKS(NG_HOOK_NODE(hook)) == 0) in ng_ether_disconnect() [all …]
|
/dragonfly/sys/netgraph7/l2tp/ |
H A D | ng_l2tp.c | 110 hook_p hook; /* hook reference */ member 398 priv->ctrl = hook; in ng_l2tp_newhook() 403 priv->lower = hook; in ng_l2tp_newhook() 436 hpriv->hook = hook; in ng_l2tp_newhook() 695 ng_l2tp_disconnect(hook_p hook) in ng_l2tp_disconnect() argument 701 if (hook == priv->ctrl) in ng_l2tp_disconnect() 703 else if (hook == priv->lower) in ng_l2tp_disconnect() 709 NG_HOOK_SET_PRIVATE(hook, NULL); in ng_l2tp_disconnect() 770 hook_p hook = NULL; in ng_l2tp_rcvdata_lower() local 879 hook = hpriv->hook; in ng_l2tp_rcvdata_lower() [all …]
|
/dragonfly/sbin/camcontrol/ |
H A D | util.c | 63 iget(void *hook, char *name) in iget() argument 65 struct get_hook *h = (struct get_hook *)hook; in iget() 86 cget(void *hook, char *name) in cget() argument 88 struct get_hook *h = (struct get_hook *)hook; in cget() 109 arg_put(void *hook __unused, int letter, void *arg, int count, char *name) in arg_put()
|
/dragonfly/sys/netgraph7/ppp/ |
H A D | ng_ppp.c | 541 hookPtr = &priv->links[linkNum].hook; in ng_ppp_newhook() 575 *hookPtr = hook; in ng_ppp_newhook() 759 ng_ppp_disconnect(hook_p hook) in ng_ppp_disconnect() argument 761 const node_p node = NG_HOOK_NODE(hook); in ng_ppp_disconnect() 767 priv->links[~index].hook = NULL; in ng_ppp_disconnect() 790 const node_p node = NG_HOOK_NODE(hook); in ng_ppp_rcvdata_inet() 806 const node_p node = NG_HOOK_NODE(hook); in ng_ppp_rcvdata_ipv6() 822 const node_p node = NG_HOOK_NODE(hook); in ng_ppp_rcvdata_atalk() 838 const node_p node = NG_HOOK_NODE(hook); in ng_ppp_rcvdata_ipx() 970 const node_p node = NG_HOOK_NODE(hook); in ng_ppp_rcvdata_vjc_comp() [all …]
|
/dragonfly/usr.sbin/ppp/ |
H A D | ether.c | 114 char hook[sizeof TUN_NAME + 11]; /* Our socket node hook */ member 132 return NgSendData(p->fd, dev->hook, v, n) == -1 ? -1 : (ssize_t)n; in ether_Write() 138 char hook[sizeof TUN_NAME + 11]; in ether_Read() local 140 return NgRecvData(p->fd, v, n, hook); in ether_Read() 278 if (setenv("ACNAME", sts->hook, 1) != 0) in ether_MessageIn() 301 msg, asciilen, sts->hook); in ether_MessageIn() 471 char connectpath[sizeof dev->hook + 2]; /* .:<hook> */ in ether_Create() 608 snprintf(dev->hook, sizeof dev->hook, "%s%d", in ether_Create() 615 snprintf(ngc.ourhook, sizeof ngc.ourhook, "%s", dev->hook); in ether_Create() 636 snprintf(data->hook, sizeof data->hook, "%s", dev->hook); in ether_Create() [all …]
|
/dragonfly/sys/netgraph/hole/ |
H A D | ng_hole.c | 81 ngh_rcvdata(hook_p hook, struct mbuf *m, meta_p meta) in ngh_rcvdata() argument 91 ngh_disconnect(hook_p hook) in ngh_disconnect() argument 93 if (hook->node->numhooks == 0) in ngh_disconnect() 94 ng_rmnode(hook->node); in ngh_disconnect()
|
/dragonfly/sys/netgraph/socket/ |
H A D | ng_socket.c | 350 hook_p hook = NULL; in ngd_send() local 376 hook = LIST_FIRST(&pcbp->sockdata->node->hooks); in ngd_send() 392 if (strcmp(hookname, hook->name) == 0) in ngd_send() 395 if (hook == NULL) in ngd_send() 684 char *node, *hook; in ng_connect_cntl() local 690 if (rtn < 0 || node == NULL || hook == NULL) { in ng_connect_cntl() 780 hook->private = node->private; in ngs_newhook() 866 bcopy(hook->name, addr->sg_data, addrlen); in ngs_rcvdata() 893 ngs_disconnect(hook_p hook) in ngs_disconnect() argument 898 && (hook->node->numhooks == 0)) { in ngs_disconnect() [all …]
|
/dragonfly/share/examples/netgraph/ |
H A D | ngctl | 19 connect Connects hook <peerhook> of the node at <relpath> to <hook> 27 rmhook Disconnect hook "hook" of the node at "path" 40 # Note that ``foo'' is the hook name on the socket node, which can be 41 # anything. The ``inet/raw/divert'' is the hook name on the ksocket 107 Rec'd data packet on hook "foo": 113 Rec'd data packet on hook "foo": 119 Rec'd data packet on hook "foo": 127 # hook of ngctl's socket node. Since the packets are getting diverted, 136 Rec'd data packet on hook "foo": 154 # char ourhook[NG_HOOKSIZ]; /* hook name */ [all …]
|
/dragonfly/contrib/ncurses/progs/ |
H A D | toe.c | 347 hook(db_index, db_limit, next, &data); in show_termcap() 372 DescHook hook) in typelist() argument 452 hook(i, eargc, cn, <erm); in typelist() 489 hook(i, eargc, cn, <erm); in typelist() 516 show_termcap(i, eargc, buffer, hook); in typelist() 519 show_termcap(i, eargc, buffer, hook); in typelist() 541 show_termcap(i, eargc, buffer, hook); in typelist() 550 if (hook == sorthook) { in typelist() 577 DescHook *hook = deschook; in main() local 606 hook = sorthook; in main() [all …]
|
/dragonfly/sys/netgraph/bridge/ |
H A D | ng_bridge.c | 86 hook_p hook; /* netgraph hook */ member 135 #define LINK_NUM(hook) (*(u_int16_t *)(&(hook)->private)) argument 366 priv->links[linkNum]->hook = hook; in ng_bridge_newhook() 367 LINK_NUM(hook) = linkNum; in ng_bridge_newhook() 519 const node_p node = hook->node; in ng_bridge_rcvdata() 528 linkNum = LINK_NUM(hook); in ng_bridge_rcvdata() 599 hook->name, suffix); in ng_bridge_rcvdata() 740 ng_bridge_disconnect(hook_p hook) in ng_bridge_disconnect() argument 746 linkNum = LINK_NUM(hook); in ng_bridge_disconnect() 760 if (hook->node->numhooks == 0) in ng_bridge_disconnect() [all …]
|
/dragonfly/sys/netgraph/async/ |
H A D | ng_async.c | 261 *hookp = hook; in nga_newhook() 269 nga_rcvdata(hook_p hook, struct mbuf *m, meta_p meta) in nga_rcvdata() argument 271 const sc_p sc = hook->node->private; in nga_rcvdata() 273 if (hook == sc->sync) in nga_rcvdata() 275 if (hook == sc->async) in nga_rcvdata() 388 nga_disconnect(hook_p hook) in nga_disconnect() argument 390 const sc_p sc = hook->node->private; in nga_disconnect() 393 if (hook == sc->async) in nga_disconnect() 395 else if (hook == sc->sync) in nga_disconnect() 404 if (hook->node->numhooks == 0) in nga_disconnect() [all …]
|