Browse Source

const char for window size function

pull/5/head
ValdikSS 8 years ago
parent
commit
a2d5be1eed
  1. 2
      goodbyedpi.c

2
goodbyedpi.c

@ -86,7 +86,7 @@ static PVOID find_host_header(const char *pktdata, int pktlen) {
http_host_find, strlen(http_host_find)); 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); *(uint16_t*)(pkt + IPV4_HDR_LEN + TCP_WINDOWSIZE_OFFSET) = htons(size);
} }

Loading…
Cancel
Save