Lines Matching defs:ourhook
609 ng_connect_node(const char *node, const char *ourhook, const char *peerhook)
614 strlcpy(conn.ourhook, ourhook, NG_HOOKSIZ);
620 ng_connect_id(ng_ID_t id, const char *ourhook, const char *peerhook)
625 strlcpy(conn.ourhook, ourhook, NG_HOOKSIZ);
632 ng_connect2_id(ng_ID_t id, ng_ID_t peer, const char *ourhook,
641 strlcpy(conn.ourhook, ourhook, NG_HOOKSIZ);
648 ng_connect2_tee_id(ng_ID_t id, ng_ID_t peer, const char *ourhook,
655 if ((tee = ng_mkpeer_id(id, NULL, "tee", ourhook, "left")) == 0)
661 strlcpy(conn.ourhook, "right", NG_HOOKSIZ);
689 if (strcmp(hooklist->link[i].ourhook, hook) == 0)
738 strlcpy(mkpeer.ourhook, hook, NG_HOOKSIZ);
776 ng_rmhook(const char *ourhook)
780 strlcpy(rmhook.ourhook, ourhook, NG_HOOKSIZ);
794 strlcpy(rmhook.ourhook, hook, NG_HOOKSIZ);
824 if (strcmp(hooklist->link[i].ourhook, hook) == 0)
877 if (strcmp(hooklist->link[i].ourhook, hook) == 0)
1484 if (strlen(list->link[i].ourhook) == hooklen &&
1485 strncmp(list->link[i].ourhook, hook, hooklen) == 0) {
1501 if (strlen(i1->ourhook) < strlen(i2->ourhook))
1503 if (strlen(i1->ourhook) > strlen(i2->ourhook))
1505 return (strcmp(i1->ourhook, i2->ourhook));
1570 idx.len = strlen(hooks->link[i].ourhook) + 1;
1573 idx.subs[j + 1] = hooks->link[i].ourhook[j];
1637 value->var.len = sub + 1 + 1 + strlen(linkinfo.ourhook);
1639 value->var.subs[sub + 1] = strlen(linkinfo.ourhook);
1640 for (i = 0; i < strlen(linkinfo.ourhook); i++)
1642 linkinfo.ourhook[i];