]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/sys-solaris.c
pppd: Add option "stop-bits" to set number of serial port stop bits.
[ppp.git] / pppd / sys-solaris.c
index 50ce3dfac2d39a28e1ba26a3e5175f6bc0a73388..93d90332e0d4f2116b17800970e082cf193640dd 100644 (file)
@@ -1225,6 +1225,9 @@ set_up_tty(fd, local)
     }
 #endif
 
+    if (stop_bits >= 2)
+       tios.c_cflag |= CSTOPB;
+
     tios.c_cflag |= CS8 | CREAD | HUPCL;
     if (local || !modem)
        tios.c_cflag |= CLOCAL;