* [PATCH] Check character flags in ppp_async ldisc
@ 2004-11-06 6:14 Paul Mackerras
0 siblings, 0 replies; only message in thread
From: Paul Mackerras @ 2004-11-06 6:14 UTC (permalink / raw)
To: akpm; +Cc: alan, linux-kernel
Although it was checking the per-character error flags supplied by the
driver for ordinary characters, the ppp_async line discipline code
wasn't checking the flags for special characters, such as the flag and
escape characters (~ and }). This patch adds that check.
Signed-off-by: Paul Mackerras <paulus@samba.org>
diff -urN linux-2.5/drivers/net/ppp_async.c pmac-2.5/drivers/net/ppp_async.c
--- linux-2.5/drivers/net/ppp_async.c 2004-10-22 07:00:21.000000000 +1000
+++ pmac-2.5/drivers/net/ppp_async.c 2004-11-06 17:12:05.517208784 +1100
@@ -911,7 +911,9 @@
break;
c = buf[n];
- if (c == PPP_FLAG) {
+ if (flags != NULL && flags[n] != 0) {
+ ap->state |= SC_TOSS;
+ } else if (c == PPP_FLAG) {
process_input_packet(ap);
} else if (c == PPP_ESCAPE) {
ap->state |= SC_ESCAPE;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-11-06 6:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-06 6:14 [PATCH] Check character flags in ppp_async ldisc Paul Mackerras
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®