[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.162 and 1.163

version 1.162, 2002/01/24 21:09:25 version 1.163, 2002/01/27 14:57:46
Line 2373 
Line 2373 
  * an error occurs.   * an error occurs.
  */   */
 int  int
 x11_create_display_inet(int x11_display_offset, int gateway_ports,  x11_create_display_inet(int x11_display_offset, int x11_use_localhost,
     int single_connection)      int single_connection)
 {  {
         Channel *nc = NULL;          Channel *nc = NULL;
Line 2389 
Line 2389 
                 port = 6000 + display_number;                  port = 6000 + display_number;
                 memset(&hints, 0, sizeof(hints));                  memset(&hints, 0, sizeof(hints));
                 hints.ai_family = IPv4or6;                  hints.ai_family = IPv4or6;
                 hints.ai_flags = gateway_ports ? AI_PASSIVE : 0;                  hints.ai_flags = x11_use_localhost ? 0: AI_PASSIVE;
                 hints.ai_socktype = SOCK_STREAM;                  hints.ai_socktype = SOCK_STREAM;
                 snprintf(strport, sizeof strport, "%d", port);                  snprintf(strport, sizeof strport, "%d", port);
                 if ((gaierr = getaddrinfo(NULL, strport, &hints, &aitop)) != 0) {                  if ((gaierr = getaddrinfo(NULL, strport, &hints, &aitop)) != 0) {

Legend:
Removed from v.1.162  
changed lines
  Added in v.1.163