This patch wasn't applied, probably because the misplaced else
statement, here is a corrected version. This would at last make linux
support xon/xoff for ppp connections (it hasn't been available since 2.0
at least).
Please apply,
Regards,
Samuel Thibault
diff -ur linux-2.5.71-orig/drivers/net/ppp_async.c linux-2.5.71-perso/drivers/net/ppp_async.c
--- linux-2.5.71-orig/drivers/net/ppp_async.c 2003-06-14 17:13:03.000000000 -0400
+++ linux-2.5.71-perso/drivers/net/ppp_async.c 2003-07-06 13:51:23.000000000 -0400
@@ -893,6 +893,24 @@
process_input_packet(ap);
} else if (c == PPP_ESCAPE) {
ap->state |= SC_ESCAPE;
+ } else if (I_IXON(ap->tty)) {
+ if (c == STOP_CHAR(ap->tty)) {
+ if (!ap->tty->stopped) {
+ ap->tty->stopped = 1;
+ if (ap->tty->driver->stop)
+ (ap->tty->driver->stop)(ap->tty);
+ }
+ } else if (c == START_CHAR(ap->tty)) {
+ if (ap->tty->stopped) {
+ ap->tty->stopped = 0;
+ if (ap->tty->driver->start)
+ (ap->tty->driver->start)(ap->tty);
+ if ((test_bit(TTY_DO_WRITE_WAKEUP, &ap->tty->flags)) &&
+ ap->tty->ldisc.write_wakeup)
+ (ap->tty->ldisc.write_wakeup)(ap->tty);
+ wake_up_interruptible(&ap->tty->write_wait);
+ }
+ }
}
/* otherwise it's a char in the recv ACCM */
++n;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/