Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
e7bca3fc
Commit
e7bca3fc
authored
19 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Created escape_telnet_iac (0xff) option.
parent
61037312
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/sbbs3/zmodem.c
+10
-0
10 additions, 0 deletions
src/sbbs3/zmodem.c
src/sbbs3/zmodem.h
+1
-0
1 addition, 0 deletions
src/sbbs3/zmodem.h
with
11 additions
and
0 deletions
src/sbbs3/zmodem.c
+
10
−
0
View file @
e7bca3fc
...
@@ -35,6 +35,7 @@
...
@@ -35,6 +35,7 @@
#include
"crc32.h"
#include
"crc32.h"
#include
"sexyz.h"
#include
"sexyz.h"
#include
"telnet.h"
#define ENDOFFRAME 2
#define ENDOFFRAME 2
#define FRAMEOK 1
#define FRAMEOK 1
...
@@ -207,6 +208,8 @@ int zmodem_send_esc(zmodem_t* zm, unsigned char c)
...
@@ -207,6 +208,8 @@ int zmodem_send_esc(zmodem_t* zm, unsigned char c)
int
zmodem_tx
(
zmodem_t
*
zm
,
unsigned
char
c
)
int
zmodem_tx
(
zmodem_t
*
zm
,
unsigned
char
c
)
{
{
int
result
;
switch
(
c
)
{
switch
(
c
)
{
case
DLE
:
case
DLE
:
case
DLE
|
0x80
:
/* even if high-bit set */
case
DLE
|
0x80
:
/* even if high-bit set */
...
@@ -221,6 +224,13 @@ int zmodem_tx(zmodem_t* zm, unsigned char c)
...
@@ -221,6 +224,13 @@ int zmodem_tx(zmodem_t* zm, unsigned char c)
if
(
zm
->
escape_all_control_characters
&&
(
zm
->
last_sent
&
0x7f
)
==
'@'
)
if
(
zm
->
escape_all_control_characters
&&
(
zm
->
last_sent
&
0x7f
)
==
'@'
)
return
zmodem_send_esc
(
zm
,
c
);
return
zmodem_send_esc
(
zm
,
c
);
break
;
break
;
case
TELNET_IAC
:
if
(
zm
->
escape_telnet_iac
)
{
if
((
result
=
zmodem_send_raw
(
zm
,
ZDLE
))
!=
0
)
return
(
result
);
return
zmodem_send_raw
(
zm
,
ZRUB1
);
}
break
;
default:
default:
if
(
zm
->
escape_all_control_characters
&&
(
c
&
0x60
)
==
0
)
if
(
zm
->
escape_all_control_characters
&&
(
c
&
0x60
)
==
0
)
return
zmodem_send_esc
(
zm
,
c
);
return
zmodem_send_esc
(
zm
,
c
);
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/zmodem.h
+
1
−
0
View file @
e7bca3fc
...
@@ -251,6 +251,7 @@ typedef struct {
...
@@ -251,6 +251,7 @@ typedef struct {
long
crc_request
;
long
crc_request
;
/* Configuration */
/* Configuration */
BOOL
escape_telnet_iac
;
unsigned
send_timeout
;
unsigned
send_timeout
;
unsigned
recv_timeout
;
unsigned
recv_timeout
;
unsigned
max_errors
;
unsigned
max_errors
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment