Lines Matching defs:path

101 /* XXX: streamlocal wants a path instead of host:port */
108 char *listen_path; /* Remote side should listen path. */
769 free(c->path);
770 c->path = NULL;
1494 free(c->path);
1495 c->path = NULL;
1498 c->path = xstrdup(host);
1516 c->path = xstrdup(p);
1523 c->self, c->path, c->host_port, s4_req.command);
1643 free(c->path);
1644 c->path = NULL;
1651 c->path = xstrdup(dest_addr);
1655 c->path = xstrdup(ntop);
1660 c->self, c->path, c->host_port, s5_req.command);
1688 c->path = xstrdup(host_to_connect);
1883 rtype, c->listening_port, c->path, c->host_port,
1889 if ((r = sshpkt_put_cstring(ssh, c->path)) != 0 ||
1893 /* target path */
1894 if ((r = sshpkt_put_cstring(ssh, c->path)) != 0)
1897 /* listen path */
1898 if ((r = sshpkt_put_cstring(ssh, c->path)) != 0)
1902 if ((r = sshpkt_put_cstring(ssh, c->path)) != 0 ||
1944 c->listening_port, c->path, c->host_port);
1979 if (c->path != NULL)
1980 nc->path = xstrdup(c->path);
3881 c->path = xstrdup(host);
3902 const char *path;
3911 error("Local connecting path too long: %s",
3915 path = fwd->connect_path;
3926 path = fwd->connect_host;
3931 path = fwd->listen_path;
3940 error("No forward path name.");
3944 error("Local listening path too long: %s", fwd->listen_path);
3948 debug3_f("type %d path %s", type, fwd->listen_path);
3958 debug("Local forwarding listening on path %s.", fwd->listen_path);
3964 c->path = xstrdup(path);
3982 if (strcmp(c->path, host) == 0 && c->listening_port == port) {
3993 channel_cancel_rport_listener_streamlocal(struct ssh *ssh, const char *path)
4002 if (c->path == NULL)
4004 if (strcmp(c->path, path) == 0) {
4063 channel_cancel_lport_listener_streamlocal(struct ssh *ssh, const char *path)
4068 if (path == NULL) {
4069 error_f("no path specified.");
4079 if (strcmp(c->listening_addr, path) == 0) {
4189 "remote forward to path \"%.100s\", "
4387 * path from local side.
4390 channel_request_rforward_cancel_streamlocal(struct ssh *ssh, const char *path)
4400 if (open_listen_match_streamlocal(perm, path))
4412 (r = sshpkt_put_cstring(ssh, path)) != 0 ||
4600 * Return connecting socket to remote host:port or local socket path,
4668 /* Return CONNECTING channel to remote host:port or local socket path */
4687 c->path = xstrdup(host);
4726 channel_connect_by_listen_path(struct ssh *ssh, const char *path,
4736 if (open_listen_match_streamlocal(perm, path)) {
4742 error("WARNING: Server requests forwarding for unknown path %.100s",
4743 path);
4802 c->path = xstrdup(host);
4808 /* Check if connecting to that path is permitted and connect. */
4810 channel_connect_to_path(struct ssh *ssh, const char *path,
4822 if (open_match(perm, path, PORT_STREAMLOCAL)) {
4833 if (open_match(perm, path, PORT_STREAMLOCAL)) {
4841 logit("Received request to connect to path %.100s, "
4842 "but the request was denied.", path);
4845 return connect_to(ssh, path, PORT_STREAMLOCAL, ctype, rname);
4882 c->path = NULL;
4897 /* Return CONNECTING socket to remote host:port or local socket path */
4912 if (open_match(perm, c->path, c->host_port)) {
4924 sock = connect_to_helper(ssh, c->path, c->host_port, SOCK_STREAM, NULL,