[rtems-libbsd commit] ppp: Update due to API changes

Sebastian Huber sebh at rtems.org
Mon Apr 3 12:12:59 UTC 2017


Module:    rtems-libbsd
Branch:    master
Commit:    0395c5db066c848b87a0d10279a3efaf42d8a501
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=0395c5db066c848b87a0d10279a3efaf42d8a501

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Apr  3 14:10:37 2017 +0200

ppp: Update due to API changes

---

 rtemsbsd/sys/net/ppp_tty.c | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/rtemsbsd/sys/net/ppp_tty.c b/rtemsbsd/sys/net/ppp_tty.c
index 71105c9..9d416ea 100644
--- a/rtemsbsd/sys/net/ppp_tty.c
+++ b/rtemsbsd/sys/net/ppp_tty.c
@@ -244,7 +244,7 @@ pppopen(struct rtems_termios_tty *tty)
     /* initialize values */
     sc->sc_ifp->if_drv_flags |= IFF_DRV_RUNNING;
     sc->sc_ifp->if_baudrate =
-	rtems_termios_baud_to_number(tty->termios.c_cflag & CBAUD);
+	rtems_termios_baud_to_number(tty->termios.c_ospeed);
 
     tty->t_sc = (void *)sc;
 
@@ -426,12 +426,15 @@ ppptioctl(struct rtems_termios_tty *tty, rtems_libio_ioctl_args_t *args)
     struct ppp_softc   *sc    = tty->t_sc;
 
     switch (cmd) {
-    case RTEMS_IO_GET_ATTRIBUTES:
-    case RTEMS_IO_SET_ATTRIBUTES:
-    case RTEMS_IO_TCDRAIN:
-    case RTEMS_IO_SNDWAKEUP:
     case RTEMS_IO_RCVWAKEUP:
+    case RTEMS_IO_SNDWAKEUP:
+    case TIOCDRAIN:
+    case TIOCFLUSH:
+    case TIOCGETA:
     case TIOCGETD:
+    case TIOCSETA:
+    case TIOCSETAF:
+    case TIOCSETAW:
     case TIOCSETD:
         error = rtems_termios_ioctl(args);
 	break;



More information about the vc mailing list