Searched refs:ourhook (Results 1 - 15 of 15) sorted by relevance

/freebsd-11-stable/usr.sbin/ngctl/
H A Drmhook.c72 snprintf(rmh.ourhook, sizeof(rmh.ourhook), "%s", av[1]);
H A Dconnect.c75 snprintf(con.ourhook, sizeof(con.ourhook), "%s", av[2]);
H A Dmkpeer.c75 snprintf(mkp.ourhook, sizeof(mkp.ourhook), "%s", av[2]);
H A Ddot.c166 hlist->link[j].ourhook, hlist->link[j].ourhook);
174 hlist->link[j].ourhook);
183 hlist->link[j].ourhook,
H A Dshow.c131 printf(FMT, link->ourhook, peer->name,
/freebsd-11-stable/usr.sbin/bsnmpd/modules/snmp_netgraph/
H A Dsnmp_netgraph.h73 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 Dsnmp_netgraph.c609 ng_connect_node(const char *node, const char *ourhook, const char *peerhook) argument
614 strlcpy(conn.ourhook, ourhook, NG_HOOKSIZ);
620 ng_connect_id(ng_ID_t id, const char *ourhook, const char *peerhook) argument
625 strlcpy(conn.ourhook, ourhook, NG_HOOKSIZ);
632 ng_connect2_id(ng_ID_t id, ng_ID_t peer, const char *ourhook, argument
641 strlcpy(conn.ourhook, ourhook, NG_HOOKSIZ);
648 ng_connect2_tee_id(ng_ID_t id, ng_ID_t peer, const char *ourhook, argument
776 ng_rmhook(const char *ourhook) argument
[all...]
/freebsd-11-stable/libexec/pppoed/
H A Dpppoed.c173 nlink->ourhook, nlink->nodeinfo.id, nlink->peerhook);
175 if (!strcmp(nlink->ourhook, NG_ETHER_HOOK_ORPHAN) ||
176 !strcmp(nlink->ourhook, NG_ETHER_HOOK_DIVERT)) {
197 snprintf(mkp.ourhook, sizeof mkp.ourhook, "%s", NG_ETHER_HOOK_ORPHAN);
202 mkp.ourhook, mkp.type, mkp.peerhook);
214 snprintf(ngc->ourhook, sizeof ngc->ourhook, "pppoe-%ld", (long)getpid());
215 memcpy(ngc->peerhook, ngc->ourhook, sizeof ngc->peerhook);
232 strcpy(spath + 2, ngc->ourhook);
[all...]
/freebsd-11-stable/tests/sys/netgraph/
H A Dutil.c76 strncpy(c.ourhook, hook1, sizeof(c.ourhook));
92 strncpy(p.ourhook, hook1, sizeof(p.ourhook));
107 strncpy(h.ourhook, hook, sizeof(h.ourhook));
/freebsd-11-stable/sys/netgraph/
H A Dng_message.h174 char ourhook[NG_HOOKSIZ]; /* hook name */ member in struct:ngm_mkpeer
181 { "ourhook", &ng_parse_hookbuf_type }, \
189 char ourhook[NG_HOOKSIZ]; /* hook name */ member in struct:ngm_connect
196 { "ourhook", &ng_parse_hookbuf_type }, \
214 char ourhook[NG_HOOKSIZ]; /* hook name */ member in struct:ngm_rmhook
242 char ourhook[NG_HOOKSIZ]; /* hook name */ member in struct:linkinfo
249 { "ourhook", &ng_parse_hookbuf_type }, \
H A Dng_base.c2539 mkp->ourhook[sizeof(mkp->ourhook) - 1] = '\0';
2541 error = ng_mkpeer(here, mkp->ourhook, mkp->peerhook, mkp->type);
2556 con->ourhook[sizeof(con->ourhook) - 1] = '\0';
2562 error = ng_con_nodes(item, here, con->ourhook,
2590 rmh->ourhook[sizeof(rmh->ourhook) - 1] = '\0';
2591 if ((hook = ng_findhook(here, rmh->ourhook)) != NULL)
2649 strcpy(link->ourhook, NG_HOOK_NAM
[all...]
/freebsd-11-stable/usr.sbin/ppp/
H A Dether.c559 log_Printf(LogDEBUG, " Found %s -> %s\n", nlink->ourhook,
562 if (!strcmp(nlink->ourhook, NG_ETHER_HOOK_ORPHAN) ||
563 !strcmp(nlink->ourhook, NG_ETHER_HOOK_DIVERT)) {
587 snprintf(mkp.ourhook, sizeof mkp.ourhook, "%s", NG_ETHER_HOOK_ORPHAN);
592 etherid, mkp.ourhook, mkp.peerhook);
611 snprintf(ngc.ourhook, sizeof ngc.ourhook, "%s", dev->hook);
612 memcpy(ngc.peerhook, ngc.ourhook, sizeof ngc.peerhook);
615 ngc.ourhook, ng
[all...]
H A Dnetgraph.c609 log_Printf(LogDEBUG, " Found %s -> %s (type %s)\n", nlink->ourhook,
612 if (!strcmp(nlink->ourhook, lasthook)) {
616 p->link.name, nlink->ourhook, path);
634 snprintf(mkp.ourhook, sizeof mkp.ourhook, "%s", lasthook);
638 p->link.name, path, mkp.ourhook, mkp.peerhook, nodetype);
697 snprintf(ngc.ourhook, sizeof ngc.ourhook, "%s", dev->hook);
698 memcpy(ngc.peerhook, ngc.ourhook, sizeof ngc.peerhook);
701 ngc.ourhook, ng
[all...]
H A Dtty.c323 snprintf(ngm.ourhook, sizeof ngm.ourhook, "%s", NG_TTY_HOOK);
326 ngm.peerhook, ttypath, ngm.ourhook);
337 memcpy(ngc.ourhook, ngc.peerhook, sizeof ngc.ourhook);
339 ngc.path, ngc.peerhook, ngc.ourhook);
343 p->link.name, ngc.ourhook, ngc.path, ngc.peerhook,
361 snprintf(dev->hook, sizeof dev->hook, "%s", ngc.ourhook);
/freebsd-11-stable/usr.sbin/nghook/
H A Dmain.c158 snprintf(ngc.ourhook, sizeof(ngc.ourhook), NG_SOCK_HOOK_NAME);

Completed in 176 milliseconds