mirror of
https://github.com/ksherlock/marlene.git
synced 2025-01-02 23:30:11 +00:00
add TELOPT_TSPEED negotiation
This commit is contained in:
parent
cc7c10c1ee
commit
f9fdf4f3de
16
darlene.c
16
darlene.c
@ -217,7 +217,18 @@ static int cnt;
|
||||
TCPIPWriteTCP(ipid, msg,
|
||||
sizeof(msg), true, false);
|
||||
}
|
||||
|
||||
else if (buffer[0] == TELOPT_TSPEED
|
||||
&& buffer[1] == TELQUAL_SEND)
|
||||
{
|
||||
static char msg[] =
|
||||
{
|
||||
IAC, SB, TELOPT_TSPEED,
|
||||
'9', '6', '0', '0', ',', '9', '6', '0', '0',
|
||||
IAC, SE
|
||||
};
|
||||
TCPIPWriteTCP(ipid, msg,
|
||||
sizeof(msg), true, false);
|
||||
}
|
||||
cnt = 0;
|
||||
return 0;
|
||||
default:
|
||||
@ -230,7 +241,8 @@ static int cnt;
|
||||
buffer[2] = c;
|
||||
if (c == TELOPT_TTYPE
|
||||
|| c == TELOPT_SGA
|
||||
|| c == TELOPT_NAWS)
|
||||
|| c == TELOPT_NAWS
|
||||
|| c == TELOPT_TSPEED)
|
||||
{
|
||||
buffer[1] = WILL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user