Home
last modified time | relevance | path

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

/freebsd/libexec/pppoed/
H A Dpppoed.c173 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 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.c607 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 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()
H A Dksocket.c65 .ourhook = OURHOOK, in ATF_TC_BODY()
89 .ourhook = OURHOOK, in ATF_TC_BODY()
/freebsd/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/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/sys/netgraph/
H A Dng_message.h175 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 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/usr.sbin/nghook/
H A Dmain.c156 snprintf(ngc.ourhook, sizeof(ngc.ourhook), NG_SOCK_HOOK_NAME); in main()
/freebsd/usr.sbin/bhyve/
H A Dnet_backend_netgraph.c85 strncpy(ngc.ourhook, value, NG_HOOKSIZ - 1); in ng_init()
/freebsd/share/examples/netgraph/
H A Dngctl152 # char ourhook[NG_HOOKSIZ]; /* hook name */
169 linkinfo=[ { ourhook="local/stream/0" peerhook="bar"