Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
net-tools
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
net-tools
Commits
79143c2f
Commit
79143c2f
authored
Dec 04, 2005
by
Bernd Eckenfels
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make slattach 3-wire -L mode work (no RTSCTS) (Debian Bug #175743)
parent
2b012117
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
slattach.c
slattach.c
+4
-2
No files found.
slattach.c
View file @
79143c2f
...
...
@@ -115,7 +115,7 @@ int opt_h = 0; /* "hangup" on carrier loss */
int
opt_k
=
0
;
/* "keepalive" value */
#endif
int
opt_l
=
0
;
/* "lock it" flag */
int
opt_L
=
0
;
/*
clocal flag
*/
int
opt_L
=
0
;
/*
3-wire mode flag
*/
int
opt_m
=
0
;
/* "set RAW mode" flag */
int
opt_n
=
0
;
/* "set No Mesg" flag */
#ifdef SIOCSOUTFILL
...
...
@@ -342,9 +342,11 @@ tty_set_raw(struct termios *tty)
tty
->
c_oflag
=
(
0
);
/* output flags */
tty
->
c_lflag
=
(
0
);
/* local flags */
speed
=
(
tty
->
c_cflag
&
CBAUD
);
/* save current speed */
tty
->
c_cflag
=
(
CRTSCTS
|
HUPCL
|
CREAD
);
/* UART flags */
tty
->
c_cflag
=
(
HUPCL
|
CREAD
);
/* UART flags */
if
(
opt_L
)
tty
->
c_cflag
|=
CLOCAL
;
else
tty
->
c_cflag
|=
CRTSCTS
;
tty
->
c_cflag
|=
speed
;
/* restore speed */
return
(
0
);
}
...
...
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