]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/sys-linux.c
make establish_ppp and open_ppp_loopback return the correct fd
[ppp.git] / pppd / sys-linux.c
index 7f0e581ccee7fd3c1e0ba24c8ebc3dfe84f77915..0ed73fd81dc0ccda2a9388207ae64ae4eb22c6d2 100644 (file)
@@ -2108,8 +2108,7 @@ int cifaddr (int unit, u_int32_t our_adr, u_int32_t his_adr)
 /********************************************************************
  *
  * open_loopback - open the device we use for getting packets
- * in demand mode.  Under Linux, we use our existing fd
- * to the ppp driver.
+ * in demand mode.  Under Linux, we use a pty master/slave pair.
  */
 int
 open_ppp_loopback(void)
@@ -2167,7 +2166,7 @@ open_ppp_loopback(void)
  */
     set_kdebugflag (kdebugflag);
 
-    return ppp_fd;
+    return master_fd;
 }
 
 /********************************************************************