[BACK]Return to channels.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/channels.c between version 1.423 and 1.424

version 1.423, 2023/01/06 02:39:59 version 1.424, 2023/01/06 02:41:49
Line 1696 
Line 1696 
         snprintf(buf, sizeof buf, "X11 connection from %.200s port %d",          snprintf(buf, sizeof buf, "X11 connection from %.200s port %d",
             remote_ipaddr, remote_port);              remote_ipaddr, remote_port);
   
         nc = channel_new(ssh, "accepted x11 socket",          nc = channel_new(ssh, "x11-connection",
             SSH_CHANNEL_OPENING, newsock, newsock, -1,              SSH_CHANNEL_OPENING, newsock, newsock, -1,
             c->local_window_max, c->local_maxpacket, 0, buf, 1);              c->local_window_max, c->local_maxpacket, 0, buf, 1);
         open_preamble(ssh, __func__, nc, "x11");          open_preamble(ssh, __func__, nc, "x11");
Line 1855 
Line 1855 
                         c->notbefore = monotime() + 1;                          c->notbefore = monotime() + 1;
                 return;                  return;
         }          }
         nc = channel_new(ssh, "accepted auth socket",          nc = channel_new(ssh, "agent-connection",
             SSH_CHANNEL_OPENING, newsock, newsock, -1,              SSH_CHANNEL_OPENING, newsock, newsock, -1,
             c->local_window_max, c->local_maxpacket,              c->local_window_max, c->local_maxpacket,
             0, "accepted auth socket", 1);              0, "accepted auth socket", 1);
Line 2306 
Line 2306 
                 close(newsock);                  close(newsock);
                 return;                  return;
         }          }
         nc = channel_new(ssh, "multiplex client", SSH_CHANNEL_MUX_CLIENT,          nc = channel_new(ssh, "mux-control", SSH_CHANNEL_MUX_CLIENT,
             newsock, newsock, -1, c->local_window_max,              newsock, newsock, -1, c->local_window_max,
             c->local_maxpacket, 0, "mux-control", 1);              c->local_maxpacket, 0, "mux-control", 1);
         nc->mux_rcb = c->mux_rcb;          nc->mux_rcb = c->mux_rcb;
Line 2940 
Line 2940 
                         error_fr(r, "parse");                          error_fr(r, "parse");
                         goto out;                          goto out;
                 }                  }
                 c = channel_new(ssh, "mux proxy", SSH_CHANNEL_MUX_PROXY,                  c = channel_new(ssh, "mux-proxy", SSH_CHANNEL_MUX_PROXY,
                     -1, -1, -1, 0, 0, 0, ctype, 1);                      -1, -1, -1, 0, 0, 0, ctype, 1);
                 c->mux_ctx = downstream;        /* point to mux client */                  c->mux_ctx = downstream;        /* point to mux client */
                 c->mux_downstream_id = id;      /* original downstream id */                  c->mux_downstream_id = id;      /* original downstream id */
Line 2967 
Line 2967 
                         error_fr(r, "parse");                          error_fr(r, "parse");
                         goto out;                          goto out;
                 }                  }
                 c = channel_new(ssh, "mux proxy", SSH_CHANNEL_MUX_PROXY,                  c = channel_new(ssh, "mux-proxy", SSH_CHANNEL_MUX_PROXY,
                     -1, -1, -1, 0, 0, 0, "mux-down-connect", 1);                      -1, -1, -1, 0, 0, 0, "mux-down-connect", 1);
                 c->mux_ctx = downstream;        /* point to mux client */                  c->mux_ctx = downstream;        /* point to mux client */
                 c->mux_downstream_id = id;                  c->mux_downstream_id = id;
Line 3676 
Line 3676 
                 }                  }
   
                 /* Allocate a channel number for the socket. */                  /* Allocate a channel number for the socket. */
                 c = channel_new(ssh, "port listener", type, sock, sock, -1,                  c = channel_new(ssh, "port-listener", type, sock, sock, -1,
                     CHAN_TCP_WINDOW_DEFAULT, CHAN_TCP_PACKET_DEFAULT,                      CHAN_TCP_WINDOW_DEFAULT, CHAN_TCP_PACKET_DEFAULT,
                     0, "port listener", 1);                      0, "port listener", 1);
                 c->path = xstrdup(host);                  c->path = xstrdup(host);
Line 3759 
Line 3759 
         debug("Local forwarding listening on path %s.", fwd->listen_path);          debug("Local forwarding listening on path %s.", fwd->listen_path);
   
         /* Allocate a channel number for the socket. */          /* Allocate a channel number for the socket. */
         c = channel_new(ssh, "unix listener", type, sock, sock, -1,          c = channel_new(ssh, "unix-listener", type, sock, sock, -1,
             CHAN_TCP_WINDOW_DEFAULT, CHAN_TCP_PACKET_DEFAULT,              CHAN_TCP_WINDOW_DEFAULT, CHAN_TCP_PACKET_DEFAULT,
             0, "unix listener", 1);              0, "unix listener", 1);
         c->path = xstrdup(path);          c->path = xstrdup(path);
Line 4831 
Line 4831 
         *chanids = xcalloc(num_socks + 1, sizeof(**chanids));          *chanids = xcalloc(num_socks + 1, sizeof(**chanids));
         for (n = 0; n < num_socks; n++) {          for (n = 0; n < num_socks; n++) {
                 sock = socks[n];                  sock = socks[n];
                 nc = channel_new(ssh, "x11 listener",                  nc = channel_new(ssh, "x11-listener",
                     SSH_CHANNEL_X11_LISTENER, sock, sock, -1,                      SSH_CHANNEL_X11_LISTENER, sock, sock, -1,
                     CHAN_X11_WINDOW_DEFAULT, CHAN_X11_PACKET_DEFAULT,                      CHAN_X11_WINDOW_DEFAULT, CHAN_X11_PACKET_DEFAULT,
                     0, "X11 inet listener", 1);                      0, "X11 inet listener", 1);

Legend:
Removed from v.1.423  
changed lines
  Added in v.1.424