Fix running on big endian

RFC2217 options with one byte values were always sent with value = 0.
This commit is contained in:
Kim Woelders
2018-10-22 11:09:12 +02:00
parent 85394b243e
commit effca015a8
3 changed files with 17 additions and 12 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ extern void telnet_rfc2217_handle_opt(tn_ctx_t * tcc, int opt,
extern void telnet_rfc2217_cfg(tn_ctx_t * tcc, int cmd,
const void *val, int nd);
extern void telnet_rfc2217_ctl(tn_ctx_t * tcc, int cmd);
extern void telnet_rfc2217_ctl(tn_ctx_t * tcc, unsigned int val);
/*RFC2217 modem state*/
#define TNS_STATE_CD 0x80