Fixed baudrate issue on Darwin.

This commit is contained in:
Ilya Dmitrichenko 2012-02-22 00:47:51 +00:00 committed by David Kopf
parent 499d3052ee
commit 70d3acf9af

View file

@ -127,7 +127,11 @@ slip_config_handle_arguments(int argc, char **argv)
fprintf(stderr,"usage: %s [options] ipaddress\n", prog);
fprintf(stderr,"example: border-router.native -L -v2 -s ttyUSB1 aaaa::1/64\n");
fprintf(stderr,"Options are:\n");
#ifdef linux
fprintf(stderr," -B baudrate 9600,19200,38400,57600,115200,921600 (default 115200)\n");
#else
fprintf(stderr," -B baudrate 9600,19200,38400,57600,115200 (default 115200)\n");
#endif
fprintf(stderr," -H Hardware CTS/RTS flow control (default disabled)\n");
fprintf(stderr," -L Log output format (adds time stamps)\n");
fprintf(stderr," -s siodev Serial device (default /dev/ttyUSB0)\n");
@ -175,9 +179,11 @@ exit(1);
case 115200:
slip_config_b_rate = B115200;
break;
#ifdef linux
case 921600:
slip_config_b_rate = B921600;
break;
#endif
default:
err(1, "unknown baudrate %d", baudrate);
break;