Home
last modified time | relevance | path

Searched refs:ourhook (Results 1 – 17 of 17) sorted by relevance

/freebsd-14.2/libexec/pppoed/
H A Dpppoed.c175 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()
298 ngc.ourhook, ngc.path, ngc.peerhook); in Spawn()
324 path = (char *)alloca(strlen(ngc.ourhook) + 3); in Spawn()
[all …]
/freebsd-14.2/usr.sbin/bsnmpd/modules/snmp_netgraph/
H A Dsnmp_netgraph.h71 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 Dsnmp_netgraph.c612 strlcpy(conn.ourhook, ourhook, NG_HOOKSIZ); in ng_connect_node()
623 strlcpy(conn.ourhook, ourhook, NG_HOOKSIZ); in ng_connect_id()
639 strlcpy(conn.ourhook, ourhook, NG_HOOKSIZ); in ng_connect2_id()
736 strlcpy(mkpeer.ourhook, hook, NG_HOOKSIZ); in ng_mkpeer_id()
774 ng_rmhook(const char *ourhook) in ng_rmhook() argument
778 strlcpy(rmhook.ourhook, ourhook, NG_HOOKSIZ); in ng_rmhook()
792 strlcpy(rmhook.ourhook, hook, NG_HOOKSIZ); in ng_rmhook_id()
1499 if (strlen(i1->ourhook) < strlen(i2->ourhook)) in hook_cmp()
1501 if (strlen(i1->ourhook) > strlen(i2->ourhook)) in hook_cmp()
1503 return (strcmp(i1->ourhook, i2->ourhook)); in hook_cmp()
[all …]
/freebsd-14.2/tests/sys/netgraph/
H A Dutil.c76 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-14.2/usr.sbin/ngctl/
H A Ddot.c177 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 Drmhook.c70 snprintf(rmh.ourhook, sizeof(rmh.ourhook), "%s", av[1]); in RmHookCmd()
H A Dconnect.c73 snprintf(con.ourhook, sizeof(con.ourhook), "%s", av[2]); in ConnectCmd()
H A Dmkpeer.c73 snprintf(mkp.ourhook, sizeof(mkp.ourhook), "%s", av[2]); in MkPeerCmd()
H A Dshow.c129 printf(FMT, link->ourhook, peer->name, in ShowCmd()
/freebsd-14.2/usr.sbin/ppp/
H A Dether.c557 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 Dnetgraph.c607 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 Dtty.c321 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-14.2/sys/netgraph/
H A Dng_message.h172 char ourhook[NG_HOOKSIZ]; /* hook name */ member
187 char ourhook[NG_HOOKSIZ]; /* hook name */ member
212 char ourhook[NG_HOOKSIZ]; /* hook name */ member
240 char ourhook[NG_HOOKSIZ]; /* hook name */ member
H A Dng_base.c2538 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-14.2/usr.sbin/nghook/
H A Dmain.c156 snprintf(ngc.ourhook, sizeof(ngc.ourhook), NG_SOCK_HOOK_NAME); in main()
/freebsd-14.2/usr.sbin/bhyve/
H A Dnet_backend_netgraph.c85 strncpy(ngc.ourhook, value, NG_HOOKSIZ - 1); in ng_init()
/freebsd-14.2/share/examples/netgraph/
H A Dngctl152 # char ourhook[NG_HOOKSIZ]; /* hook name */
169 linkinfo=[ { ourhook="local/stream/0" peerhook="bar"