const char for window size function

This commit is contained in:
ValdikSS 2017-05-23 13:23:20 +03:00
parent f08bbcc36e
commit a2d5be1eed

View File

@ -86,7 +86,7 @@ static PVOID find_host_header(const char *pktdata, int pktlen) {
http_host_find, strlen(http_host_find));
}
static void change_window_size(char *pkt, int size) {
static void change_window_size(const char *pkt, int size) {
*(uint16_t*)(pkt + IPV4_HDR_LEN + TCP_WINDOWSIZE_OFFSET) = htons(size);
}