]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/sys-linux.c
pppd: Add option "stop-bits" to set number of serial port stop bits.
[ppp.git] / pppd / sys-linux.c
index 72a7727c403f79762a93bf1342e3b02aa869c27a..163f5618582c109fd68c45d0b8392a745b44d234 100644 (file)
@@ -966,6 +966,9 @@ void set_up_tty(int tty_fd, int local)
        break;
     }
 
+    if (stop_bits >= 2)
+       tios.c_cflag |= CSTOPB;
+
     speed = translate_speed(inspeed);
     if (speed) {
        cfsetospeed (&tios, speed);