tunslip6: disable IP address inquiry by default. Document -I flag

This commit is contained in:
Simon Duquennoy 2015-10-13 09:54:06 +02:00
parent 30f69b0852
commit a9a46b29cc

View File

@ -701,7 +701,7 @@ main(int argc, char **argv)
const char *port = NULL; const char *port = NULL;
const char *prog; const char *prog;
int baudrate = -2; int baudrate = -2;
int ipa_enable = 1; int ipa_enable = 0;
int tap = 0; int tap = 0;
slipfd = 0; slipfd = 0;
@ -735,8 +735,8 @@ main(int argc, char **argv)
break; break;
case 'I': case 'I':
ipa_enable = 0; ipa_enable = 1;
fprintf(stderr, "Will not inquire about IP address using IPA=\n"); fprintf(stderr, "Will inquire about IP address using IPA=\n");
break; break;
case 't': case 't':
@ -781,6 +781,7 @@ fprintf(stderr," -B baudrate 9600,19200,38400,57600,115200 (default),230400,4
fprintf(stderr," -B baudrate 9600,19200,38400,57600,115200 (default),230400\n"); fprintf(stderr," -B baudrate 9600,19200,38400,57600,115200 (default),230400\n");
#endif #endif
fprintf(stderr," -H Hardware CTS/RTS flow control (default disabled)\n"); fprintf(stderr," -H Hardware CTS/RTS flow control (default disabled)\n");
fprintf(stderr," -I Inquire IP address\n");
fprintf(stderr," -L Log output format (adds time stamps)\n"); fprintf(stderr," -L Log output format (adds time stamps)\n");
fprintf(stderr," -s siodev Serial device (default /dev/ttyUSB0)\n"); fprintf(stderr," -s siodev Serial device (default /dev/ttyUSB0)\n");
fprintf(stderr," -T Make tap interface (default is tun interface)\n"); fprintf(stderr," -T Make tap interface (default is tun interface)\n");