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

Diff for /src/usr.bin/telnet/main.c between version 1.16 and 1.17

version 1.16, 2007/03/15 22:51:16 version 1.17, 2009/06/05 00:20:46
Line 60 
Line 60 
 #endif  #endif
   
 int family = AF_UNSPEC;  int family = AF_UNSPEC;
   u_int rdomain;
   
 /*  /*
  * Initialize variables.   * Initialize variables.
Line 91 
Line 92 
 # else  # else
             "usage: %s [-468acdEFfKLrx] [-b hostalias] [-e escapechar] "              "usage: %s [-468acdEFfKLrx] [-b hostalias] [-e escapechar] "
             "[-k realm]\n"              "[-k realm]\n"
             "\t[-l user] [-n tracefile] [-X authtype] [host [port]]\n",              "\t[-l user] [-n tracefile] [-V rdoamin] [-X authtype] "
               "[host [port]]\n",
 #endif  #endif
             __progname);              __progname);
   
Line 149 
Line 151 
         extern int optind;          extern int optind;
         int ch;          int ch;
         char *user, *alias;          char *user, *alias;
           const char *errstr;
 #ifdef  FORWARD  #ifdef  FORWARD
         extern int forward_flags;          extern int forward_flags;
 #endif  /* FORWARD */  #endif  /* FORWARD */
Line 177 
Line 180 
          */           */
         autologin = -1;          autologin = -1;
   
         while ((ch = getopt(argc, argv, "4678DEKLS:X:ab:cde:fFk:l:n:rt:x"))          while ((ch = getopt(argc, argv, "4678DEKLS:X:ab:cde:fFk:l:n:rt:V:x"))
             != -1) {              != -1) {
                 switch(ch) {                  switch(ch) {
                 case '4':                  case '4':
Line 327 
Line 330 
                            "%s: Warning: -t ignored, no TN3270 support.\n",                             "%s: Warning: -t ignored, no TN3270 support.\n",
                                                                 prompt);                                                                  prompt);
 #endif  #endif
                           break;
                   case 'V':
                           rdomain = (unsigned int)strtonum(optarg, 0,
                               RT_TABLEID_MAX, &errstr);
                           if (errstr) {
                                   fprintf(stderr,
                                       "%s: Warning: -R ignored, rdomain %s: %s\n",
                                       prompt, errstr, optarg);
                           }
                         break;                          break;
                 case 'x':                  case 'x':
 #ifdef ENCRYPTION  #ifdef ENCRYPTION

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17