use crc16

This commit is contained in:
Max Lv
2015-09-16 20:36:18 +08:00
parent 5c98a84fdd
commit 6d79387715
2 changed files with 62 additions and 35 deletions
+5 -5
View File
@@ -541,11 +541,11 @@ static void server_recv_cb(EV_P_ ev_io *w, int revents)
/*
* Shadowsocks TCP Request Payload CRC (Optional, no CRC for response's payload):
*
* +------+------+------+------+------+
* | DATA | CRC8 | DATA | CRC8 | ...
* +------+------+------+------+------+
* | 128 | 1 | 128 | 1 | ...
* +------+------+------+------+------+
* +------+-------+------+-------+------+
* | DATA | CRC16 | DATA | CRC16 | ...
* +------+-------+------+-------+------+
* | 128 | 1 | 128 | 1 | ...
* +------+-------+------+-------+------+
*/
int offset = 0;