Skip to content
Snippets Groups Projects
Commit 374d1dff authored by rswindell's avatar rswindell
Browse files

Made request_telnet_opt() global/public, so may be used from term.c to toggle

binary mode for Zmodem file transfers (for MBSE compatibility).
parent 8f9d3e53
No related branches found
No related tags found
No related merge requests found
......@@ -69,7 +69,7 @@ static void send_telnet_cmd(uchar cmd, uchar opt)
}
}
static void request_telnet_opt(uchar cmd, uchar opt)
void request_telnet_opt(uchar cmd, uchar opt)
{
if(cmd==TELNET_DO || cmd==TELNET_DONT) { /* remote option */
if(telnet_remote_option[opt]==telnet_opt_ack(cmd))
......
......@@ -3,10 +3,13 @@
#ifndef _TELNET_IO_H_
#define _TELNET_IO_H_
#include "telnet.h"
extern uchar telnet_local_option[0x100];
extern uchar telnet_remote_option[0x100];
BYTE* telnet_interpret(BYTE* inbuf, int inlen, BYTE* outbuf, int *outlen);
BYTE* telnet_expand(BYTE* inbuf, size_t inlen, BYTE* outbuf, size_t *newlen);
BYTE* telnet_interpret(BYTE* inbuf, int inlen, BYTE* outbuf, int *outlen);
BYTE* telnet_expand(BYTE* inbuf, size_t inlen, BYTE* outbuf, size_t *newlen);
void request_telnet_opt(uchar cmd, uchar opt);
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment