Lines Matching defs:path

82 	char path[NG_PATHSIZ];
242 csock_handle(struct ng_mesg *mesg, const char *path)
248 if (sscanf(path, "[%x]:%n", &id, &len) != 1 ||
249 (u_int)len != strlen(path)) {
250 syslog(LOG_ERR, "cannot parse message path '%s'", path);
259 (*d->func)(mesg, path, id, d->arg);
269 csock_read(char *path)
280 if ((ret = NgRecvMsg(csock, mesg, resbufsiz + 1, path)) < 0) {
310 char path[NG_PATHSIZ];
312 if ((mesg = csock_read(path)) == NULL)
315 csock_handle(mesg, path);
322 ng_output(const char *path, u_int cookie, u_int opcode,
325 return (NgSendMsg(csock, path, (int)cookie, (int)opcode, arg, arglen));
331 char path[NG_PATHSIZ];
333 sprintf(path, "%s:", node);
334 return (ng_output(path, cookie, opcode, arg, arglen));
340 char path[NG_PATHSIZ];
342 sprintf(path, "[%x]:", node);
343 return (ng_output(path, cookie, opcode, arg, arglen));
353 ng_dialog(const char *path, u_int cookie, u_int opcode,
362 if ((token = ng_output(path, cookie, opcode, arg, arglen)) < 0)
402 strcpy(b->path, rpath);
423 char path[NG_PATHSIZ];
425 sprintf(path, "%s:", node);
426 return (ng_dialog(path, cookie, opcode, arg, arglen));
432 char path[NG_PATHSIZ];
434 sprintf(path, "[%x]:", id);
435 return (ng_dialog(path, cookie, opcode, arg, arglen));
509 csock_handle(b->mesg, b->path);
554 ng_node_id(const char *path)
559 if ((resp = ng_dialog(path, NGM_GENERIC_COOKIE, NGM_NODEINFO,
613 snprintf(conn.path, NG_PATHSIZ, "%s:", node);
624 snprintf(conn.path, NG_PATHSIZ, "[%x]:", id);
636 char path[NG_PATHSIZ];
638 snprintf(path, NG_PATHSIZ, "[%x]:", id);
640 snprintf(conn.path, NG_PATHSIZ, "[%x]:", peer);
643 return (NgSendMsg(csock, path,
652 char path[NG_PATHSIZ];
658 snprintf(path, NG_PATHSIZ, "[%x]:", tee);
660 snprintf(conn.path, NG_PATHSIZ, "[%x]:", peer);
663 return (NgSendMsg(csock, path,
733 char path[NG_PATHSIZ];
741 sprintf(path, "[%x]:", id);
742 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, NGM_MKPEER,
751 sprintf(path, "[%x]:", id);
752 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, NGM_NAME,
765 char path[NG_PATHSIZ];
767 snprintf(path, NG_PATHSIZ, "[%x]:", id);
768 return (NgSendMsg(csock, path, NGM_GENERIC_COOKIE,
792 char path[NG_PATHSIZ];
795 snprintf(path, NG_PATHSIZ, "[%x]:", id);
796 return (NgSendMsg(csock, path,