From 70d3acf9afd78180de27cb6b7aa36b903b735a63 Mon Sep 17 00:00:00 2001 From: Ilya Dmitrichenko Date: Wed, 22 Feb 2012 00:47:51 +0000 Subject: [PATCH] Fixed baudrate issue on Darwin. --- examples/ipv6/native-border-router/slip-config.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/examples/ipv6/native-border-router/slip-config.c b/examples/ipv6/native-border-router/slip-config.c index fb00d18cc..daad4907a 100644 --- a/examples/ipv6/native-border-router/slip-config.c +++ b/examples/ipv6/native-border-router/slip-config.c @@ -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;