mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-11-18 20:24:18 +00:00
use crc16
This commit is contained in:
+5
-5
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user