]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/sys-linux.c
sync ppp update for new driver
[ppp.git] / pppd / sys-linux.c
index a43fc0a0fd582e6899dc91bbd5b1d8b64190e58f..b68cb045f7947c9fe15a4404326350fe461414ea 100644 (file)
@@ -377,6 +377,13 @@ int establish_ppp (int tty_fd)
 /*
  * Set the current tty to the PPP discpline
  */
+
+#ifndef N_SYNC_PPP
+#define N_SYNC_PPP 14
+#endif
+    if (new_style_driver)
+           ppp_disc = sync_serial ? N_SYNC_PPP:N_PPP;
+
     if (ioctl(tty_fd, TIOCSETD, &ppp_disc) < 0) {
        if ( ! ok_error (errno) )
            fatal("ioctl(TIOCSETD): %m(%d)", errno);