| /freebsd-13.1/libexec/pppoed/ |
| H A D | pppoed.c | 177 if (!strcmp(nlink->ourhook, NG_ETHER_HOOK_ORPHAN) || in ConfigureNode() 178 !strcmp(nlink->ourhook, NG_ETHER_HOOK_DIVERT)) { in ConfigureNode() 199 snprintf(mkp.ourhook, sizeof mkp.ourhook, "%s", NG_ETHER_HOOK_ORPHAN); in ConfigureNode() 204 mkp.ourhook, mkp.type, mkp.peerhook); in ConfigureNode() 216 snprintf(ngc->ourhook, sizeof ngc->ourhook, "pppoe-%ld", (long)getpid()); in ConfigureNode() 217 memcpy(ngc->peerhook, ngc->ourhook, sizeof ngc->peerhook); in ConfigureNode() 234 strcpy(spath + 2, ngc->ourhook); in ConfigureNode() 295 snprintf(ngc.ourhook, sizeof ngc.ourhook, "exec-%ld", (long)getpid()); in Spawn() 300 ngc.ourhook, ngc.path, ngc.peerhook); in Spawn() 326 path = (char *)alloca(strlen(ngc.ourhook) + 3); in Spawn() [all …]
|
| /freebsd-13.1/usr.sbin/bsnmpd/modules/snmp_netgraph/ |
| H A D | snmp_netgraph.h | 73 int ng_connect_node(const char *node, const char *ourhook, const char *peerhook); 74 int ng_connect_id(ng_ID_t id, const char *ourhook, const char *peerhook); 75 int ng_connect2_id(ng_ID_t id, ng_ID_t peer, const char *ourhook, 77 int ng_connect2_tee_id(ng_ID_t id, ng_ID_t peer, const char *ourhook, 79 int ng_rmhook(const char *ourhook);
|
| H A D | snmp_netgraph.c | 614 strlcpy(conn.ourhook, ourhook, NG_HOOKSIZ); in ng_connect_node() 625 strlcpy(conn.ourhook, ourhook, NG_HOOKSIZ); in ng_connect_id() 641 strlcpy(conn.ourhook, ourhook, NG_HOOKSIZ); in ng_connect2_id() 738 strlcpy(mkpeer.ourhook, hook, NG_HOOKSIZ); in ng_mkpeer_id() 776 ng_rmhook(const char *ourhook) in ng_rmhook() argument 780 strlcpy(rmhook.ourhook, ourhook, NG_HOOKSIZ); in ng_rmhook() 794 strlcpy(rmhook.ourhook, hook, NG_HOOKSIZ); in ng_rmhook_id() 1501 if (strlen(i1->ourhook) < strlen(i2->ourhook)) in hook_cmp() 1503 if (strlen(i1->ourhook) > strlen(i2->ourhook)) in hook_cmp() 1505 return (strcmp(i1->ourhook, i2->ourhook)); in hook_cmp() [all …]
|
| /freebsd-13.1/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()
|
| /freebsd-13.1/usr.sbin/ngctl/ |
| H A D | dot.c | 179 hlist->link[j].ourhook, hlist->link[j].ourhook); in DotCmd() 187 hlist->link[j].ourhook); in DotCmd() 199 hlist->link[j].ourhook, in DotCmd() 204 hlist->link[j].ourhook, in DotCmd()
|
| H A D | rmhook.c | 72 snprintf(rmh.ourhook, sizeof(rmh.ourhook), "%s", av[1]); in RmHookCmd()
|
| H A D | connect.c | 75 snprintf(con.ourhook, sizeof(con.ourhook), "%s", av[2]); in ConnectCmd()
|
| H A D | mkpeer.c | 75 snprintf(mkp.ourhook, sizeof(mkp.ourhook), "%s", av[2]); in MkPeerCmd()
|
| H A D | show.c | 131 printf(FMT, link->ourhook, peer->name, in ShowCmd()
|
| /freebsd-13.1/usr.sbin/ppp/ |
| H A D | ether.c | 559 log_Printf(LogDEBUG, " Found %s -> %s\n", nlink->ourhook, in ether_Create() 562 if (!strcmp(nlink->ourhook, NG_ETHER_HOOK_ORPHAN) || in ether_Create() 563 !strcmp(nlink->ourhook, NG_ETHER_HOOK_DIVERT)) { in ether_Create() 587 snprintf(mkp.ourhook, sizeof mkp.ourhook, "%s", NG_ETHER_HOOK_ORPHAN); in ether_Create() 592 etherid, mkp.ourhook, mkp.peerhook); in ether_Create() 611 snprintf(ngc.ourhook, sizeof ngc.ourhook, "%s", dev->hook); in ether_Create() 612 memcpy(ngc.peerhook, ngc.ourhook, sizeof ngc.peerhook); in ether_Create() 615 ngc.ourhook, ngc.path, ngc.peerhook); in ether_Create()
|
| H A D | netgraph.c | 609 log_Printf(LogDEBUG, " Found %s -> %s (type %s)\n", nlink->ourhook, in ng_Create() 612 if (!strcmp(nlink->ourhook, lasthook)) { in ng_Create() 616 p->link.name, nlink->ourhook, path); in ng_Create() 634 snprintf(mkp.ourhook, sizeof mkp.ourhook, "%s", lasthook); in ng_Create() 638 p->link.name, path, mkp.ourhook, mkp.peerhook, nodetype); in ng_Create() 697 snprintf(ngc.ourhook, sizeof ngc.ourhook, "%s", dev->hook); in ng_Create() 698 memcpy(ngc.peerhook, ngc.ourhook, sizeof ngc.peerhook); in ng_Create() 701 ngc.ourhook, ngc.path, ngc.peerhook); in ng_Create()
|
| H A D | tty.c | 323 snprintf(ngm.ourhook, sizeof ngm.ourhook, "%s", NG_TTY_HOOK); in LoadLineDiscipline() 326 ngm.peerhook, ttypath, ngm.ourhook); in LoadLineDiscipline() 337 memcpy(ngc.ourhook, ngc.peerhook, sizeof ngc.ourhook); in LoadLineDiscipline() 339 ngc.path, ngc.peerhook, ngc.ourhook); in LoadLineDiscipline() 343 p->link.name, ngc.ourhook, ngc.path, ngc.peerhook, in LoadLineDiscipline() 361 snprintf(dev->hook, sizeof dev->hook, "%s", ngc.ourhook); in LoadLineDiscipline()
|
| /freebsd-13.1/sys/netgraph/ |
| H A D | ng_message.h | 174 char ourhook[NG_HOOKSIZ]; /* hook name */ member 189 char ourhook[NG_HOOKSIZ]; /* hook name */ member 214 char ourhook[NG_HOOKSIZ]; /* hook name */ member 242 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-13.1/usr.sbin/nghook/ |
| H A D | main.c | 158 snprintf(ngc.ourhook, sizeof(ngc.ourhook), NG_SOCK_HOOK_NAME); in main()
|
| /freebsd-13.1/share/examples/netgraph/ |
| H A D | ngctl | 153 # char ourhook[NG_HOOKSIZ]; /* hook name */ 170 linkinfo=[ { ourhook="local/stream/0" peerhook="bar"
|
| /freebsd-13.1/usr.sbin/bhyve/ |
| H A D | net_backends.c | 487 strncpy(ngc.ourhook, value, NG_HOOKSIZ - 1); in ng_init()
|