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 *prog;
int baudrate = -2;
int ipa_enable = 1;
int ipa_enable = 0;
int tap = 0;
slipfd = 0;
@ -735,8 +735,8 @@ main(int argc, char **argv)
break;
case 'I':
ipa_enable = 0;
fprintf(stderr, "Will not inquire about IP address using IPA=\n");
ipa_enable = 1;
fprintf(stderr, "Will inquire about IP address using IPA=\n");
break;
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");
#endif
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," -s siodev Serial device (default /dev/ttyUSB0)\n");
fprintf(stderr," -T Make tap interface (default is tun interface)\n");