From: Samuel Thibault <Samuel.Thibault@ens-lyon.fr>
To: linux-ppp@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: torvalds@osdl.org
Subject: [PATCH] [2.5] adding ppp xon/xoff support
Date: Fri, 11 Jul 2003 21:17:16 -0400 [thread overview]
Message-ID: <20030712011716.GB4694@bouh.unh.edu> (raw)
Hi,
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;
next reply other threads:[~2003-07-12 1:02 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-12 1:17 Samuel Thibault [this message]
2003-07-12 1:30 ` [PATCH] [2.5] adding ppp xon/xoff support Paul Mackerras
2003-07-12 2:42 ` Samuel Thibault
2003-07-12 3:09 ` Bug in open() function (?) J.C. Wren
2003-07-12 3:38 ` Andrew Morton
2003-07-12 5:11 ` Valdis.Kletnieks
2003-07-12 5:23 ` Andrew Morton
2003-07-12 6:14 ` Valdis.Kletnieks
2003-07-12 9:37 ` Andries Brouwer
2003-07-12 12:04 ` jw schultz
2003-07-12 5:39 ` J.C. Wren
2003-07-26 21:35 ` [PATCH] [2.6] adding xon/xoff support to ppp Samuel Thibault
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030712011716.GB4694@bouh.unh.edu \
--to=samuel.thibault@ens-lyon.fr \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-ppp@vger.kernel.org \
--cc=samuel.thibault@fnac.net \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).