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

Diff for /src/usr.bin/ssh/ssh-keyscan.c between version 1.7 and 1.8

version 1.7, 2001/01/08 22:03:23 version 1.8, 2001/01/13 18:06:54
Line 27 
Line 27 
   
 int family = AF_UNSPEC;         /* IPv4, IPv6 or both */  int family = AF_UNSPEC;         /* IPv4, IPv6 or both */
   
 #define PORT 22  
 #define MAXMAXFD 256  #define MAXMAXFD 256
   
 /* The number of seconds after which to give up on a TCP connection */  /* The number of seconds after which to give up on a TCP connection */
Line 278 
Line 277 
         char strport[NI_MAXSERV];          char strport[NI_MAXSERV];
         int gaierr, s = -1;          int gaierr, s = -1;
   
         snprintf(strport, sizeof strport, "%d", PORT);          snprintf(strport, sizeof strport, "%d", SSH_DEFAULT_PORT);
         memset(&hints, 0, sizeof(hints));          memset(&hints, 0, sizeof(hints));
         hints.ai_family = family;          hints.ai_family = family;
         hints.ai_socktype = SOCK_STREAM;          hints.ai_socktype = SOCK_STREAM;

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8