/freebsd/libexec/pppoed/ |
H A D | pppoed.c | 173 nlink->ourhook, nlink->nodeinfo.id, nlink->peerhook); in ConfigureNode() 175 if (!strcmp(nlink->ourhook, NG_ETHER_HOOK_ORPHAN) || in ConfigureNode() 176 !strcmp(nlink->ourhook, NG_ETHER_HOOK_DIVERT)) { in ConfigureNode() 197 snprintf(mkp.ourhook, sizeof mkp.ourhook, "%s", NG_ETHER_HOOK_ORPHAN); in ConfigureNode() 202 mkp.ourhook, mkp.type, mkp.peerhook); in ConfigureNode() 214 snprintf(ngc->ourhook, sizeof ngc->ourhook, "pppoe-%ld", (long)getpid()); in ConfigureNode() 215 memcpy(ngc->peerhook, ngc->ourhook, sizeof ngc->peerhook); in ConfigureNode() 232 strcpy(spath + 2, ngc->ourhook); in ConfigureNode() 293 snprintf(ngc.ourhook, sizeof ngc.ourhook, "exec-%ld", (long)getpid()); in Spawn() 294 memcpy(ngc.peerhook, ngc.ourhook, sizeof ngc.peerhook); in Spawn() [all …]
|
/freebsd/usr.sbin/bsnmpd/modules/snmp_netgraph/ |
H A D | snmp_netgraph.h | 71 int ng_connect_node(const char *node, const char *ourhook, const char *peerhook); 72 int ng_connect_id(ng_ID_t id, const char *ourhook, const char *peerhook); 73 int ng_connect2_id(ng_ID_t id, ng_ID_t peer, const char *ourhook, 75 int ng_connect2_tee_id(ng_ID_t id, ng_ID_t peer, const char *ourhook, 77 int ng_rmhook(const char *ourhook);
|
H A D | snmp_netgraph.c | 607 ng_connect_node(const char *node, const char *ourhook, const char *peerhook) in ng_connect_node() argument 612 strlcpy(conn.ourhook, ourhook, NG_HOOKSIZ); in ng_connect_node() 618 ng_connect_id(ng_ID_t id, const char *ourhook, const char *peerhook) in ng_connect_id() argument 623 strlcpy(conn.ourhook, ourhook, NG_HOOKSIZ); in ng_connect_id() 630 ng_connect2_id(ng_ID_t id, ng_ID_t peer, const char *ourhook, in ng_connect2_id() argument 639 strlcpy(conn.ourhook, ourhook, NG_HOOKSIZ); in ng_connect2_id() 646 ng_connect2_tee_id(ng_ID_t id, ng_ID_t peer, const char *ourhook, in ng_connect2_tee_id() argument 653 if ((tee = ng_mkpeer_id(id, NULL, "tee", ourhook, "left")) == 0) in ng_connect2_tee_id() 659 strlcpy(conn.ourhook, "right", NG_HOOKSIZ); in ng_connect2_tee_id() 687 if (strcmp(hooklist->link[i].ourhook, hook) == 0) in ng_next_node_id_internal() [all …]
|
/freebsd/tests/sys/netgraph/ |
H A D | util.c | 76 strncpy(c.ourhook, hook1, sizeof(c.ourhook)); in _ng_connect() 92 strncpy(p.ourhook, hook1, sizeof(p.ourhook)); in _ng_mkpeer() 107 strncpy(h.ourhook, hook, sizeof(h.ourhook)); in _ng_rmhook()
|
H A D | ksocket.c | 65 .ourhook = OURHOOK, in ATF_TC_BODY() 89 .ourhook = OURHOOK, in ATF_TC_BODY()
|
/freebsd/usr.sbin/ngctl/ |
H A D | dot.c | 177 hlist->link[j].ourhook, hlist->link[j].ourhook); in DotCmd() 185 hlist->link[j].ourhook); in DotCmd() 197 hlist->link[j].ourhook, in DotCmd() 202 hlist->link[j].ourhook, in DotCmd()
|
H A D | rmhook.c | 70 snprintf(rmh.ourhook, sizeof(rmh.ourhook), "%s", av[1]); in RmHookCmd()
|
H A D | connect.c | 73 snprintf(con.ourhook, sizeof(con.ourhook), "%s", av[2]); in ConnectCmd()
|
H A D | mkpeer.c | 73 snprintf(mkp.ourhook, sizeof(mkp.ourhook), "%s", av[2]); in MkPeerCmd()
|
H A D | show.c | 129 printf(FMT, link->ourhook, peer->name, in ShowCmd()
|
/freebsd/usr.sbin/ppp/ |
H A D | ether.c | 557 log_Printf(LogDEBUG, " Found %s -> %s\n", nlink->ourhook, in ether_Create() 560 if (!strcmp(nlink->ourhook, NG_ETHER_HOOK_ORPHAN) || in ether_Create() 561 !strcmp(nlink->ourhook, NG_ETHER_HOOK_DIVERT)) { in ether_Create() 585 snprintf(mkp.ourhook, sizeof mkp.ourhook, "%s", NG_ETHER_HOOK_ORPHAN); in ether_Create() 590 etherid, mkp.ourhook, mkp.peerhook); in ether_Create() 609 snprintf(ngc.ourhook, sizeof ngc.ourhook, "%s", dev->hook); in ether_Create() 610 memcpy(ngc.peerhook, ngc.ourhook, sizeof ngc.peerhook); in ether_Create() 613 ngc.ourhook, ngc.path, ngc.peerhook); in ether_Create()
|
H A D | netgraph.c | 607 log_Printf(LogDEBUG, " Found %s -> %s (type %s)\n", nlink->ourhook, in ng_Create() 610 if (!strcmp(nlink->ourhook, lasthook)) { in ng_Create() 614 p->link.name, nlink->ourhook, path); in ng_Create() 632 snprintf(mkp.ourhook, sizeof mkp.ourhook, "%s", lasthook); in ng_Create() 636 p->link.name, path, mkp.ourhook, mkp.peerhook, nodetype); in ng_Create() 695 snprintf(ngc.ourhook, sizeof ngc.ourhook, "%s", dev->hook); in ng_Create() 696 memcpy(ngc.peerhook, ngc.ourhook, sizeof ngc.peerhook); in ng_Create() 699 ngc.ourhook, ngc.path, ngc.peerhook); in ng_Create()
|
H A D | tty.c | 321 snprintf(ngm.ourhook, sizeof ngm.ourhook, "%s", NG_TTY_HOOK); in LoadLineDiscipline() 324 ngm.peerhook, ttypath, ngm.ourhook); in LoadLineDiscipline() 335 memcpy(ngc.ourhook, ngc.peerhook, sizeof ngc.ourhook); in LoadLineDiscipline() 337 ngc.path, ngc.peerhook, ngc.ourhook); in LoadLineDiscipline() 341 p->link.name, ngc.ourhook, ngc.path, ngc.peerhook, in LoadLineDiscipline() 359 snprintf(dev->hook, sizeof dev->hook, "%s", ngc.ourhook); in LoadLineDiscipline()
|
/freebsd/sys/netgraph/ |
H A D | ng_message.h | 175 char ourhook[NG_HOOKSIZ]; /* hook name */ member 190 char ourhook[NG_HOOKSIZ]; /* hook name */ member 215 char ourhook[NG_HOOKSIZ]; /* hook name */ member 243 char ourhook[NG_HOOKSIZ]; /* hook name */ member
|
H A D | ng_base.c | 2538 mkp->ourhook[sizeof(mkp->ourhook) - 1] = '\0'; in ng_generic_msg() 2540 error = ng_mkpeer(here, mkp->ourhook, mkp->peerhook, mkp->type); in ng_generic_msg() 2555 con->ourhook[sizeof(con->ourhook) - 1] = '\0'; in ng_generic_msg() 2561 error = ng_con_nodes(item, here, con->ourhook, in ng_generic_msg() 2589 rmh->ourhook[sizeof(rmh->ourhook) - 1] = '\0'; in ng_generic_msg() 2590 if ((hook = ng_findhook(here, rmh->ourhook)) != NULL) in ng_generic_msg() 2648 strcpy(link->ourhook, NG_HOOK_NAME(hook)); in ng_generic_msg()
|
/freebsd/usr.sbin/nghook/ |
H A D | main.c | 156 snprintf(ngc.ourhook, sizeof(ngc.ourhook), NG_SOCK_HOOK_NAME); in main()
|
/freebsd/usr.sbin/bhyve/ |
H A D | net_backend_netgraph.c | 85 strncpy(ngc.ourhook, value, NG_HOOKSIZ - 1); in ng_init()
|
/freebsd/share/examples/netgraph/ |
H A D | ngctl | 152 # char ourhook[NG_HOOKSIZ]; /* hook name */ 169 linkinfo=[ { ourhook="local/stream/0" peerhook="bar"
|