Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
7416fd0c
Commit
7416fd0c
authored
Jul 29, 2003
by
Samuel Thibault
Committed by
Stephen Hemminger
Jul 29, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PPP]: Fix ppp_async xon/xoff handling.
parent
a698aef2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
drivers/char/tty_io.c
drivers/char/tty_io.c
+4
-0
drivers/net/ppp_async.c
drivers/net/ppp_async.c
+5
-0
No files found.
drivers/char/tty_io.c
View file @
7416fd0c
...
...
@@ -611,6 +611,8 @@ void stop_tty(struct tty_struct *tty)
(
tty
->
driver
->
stop
)(
tty
);
}
EXPORT_SYMBOL
(
stop_tty
);
void
start_tty
(
struct
tty_struct
*
tty
)
{
if
(
!
tty
->
stopped
||
tty
->
flow_stopped
)
...
...
@@ -629,6 +631,8 @@ void start_tty(struct tty_struct *tty)
wake_up_interruptible
(
&
tty
->
write_wait
);
}
EXPORT_SYMBOL
(
start_tty
);
static
ssize_t
tty_read
(
struct
file
*
file
,
char
*
buf
,
size_t
count
,
loff_t
*
ppos
)
{
...
...
drivers/net/ppp_async.c
View file @
7416fd0c
...
...
@@ -891,6 +891,11 @@ ppp_async_input(struct asyncppp *ap, const unsigned char *buf,
process_input_packet
(
ap
);
}
else
if
(
c
==
PPP_ESCAPE
)
{
ap
->
state
|=
SC_ESCAPE
;
}
else
if
(
I_IXON
(
ap
->
tty
))
{
if
(
c
==
START_CHAR
(
ap
->
tty
))
start_tty
(
ap
->
tty
);
else
if
(
c
==
STOP_CHAR
(
ap
->
tty
))
stop_tty
(
ap
->
tty
);
}
/* otherwise it's a char in the recv ACCM */
++
n
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment