mirror of
https://github.com/bol-van/zapret2.git
synced 2026-03-14 06:13:09 +00:00
AI inspired fixes
This commit is contained in:
@@ -86,7 +86,7 @@ uint8_t tcp_find_scale_factor(const struct tcphdr *tcp)
|
||||
uint16_t tcp_find_mss(const struct tcphdr *tcp)
|
||||
{
|
||||
uint8_t *t = tcp_find_option((struct tcphdr *)tcp, TCP_KIND_MSS);
|
||||
return (t && t[1]==4) ? *(uint16_t*)(t+2) : 0;
|
||||
return (t && t[1]==4) ? pntoh16(t+2) : 0;
|
||||
}
|
||||
bool tcp_synack_segment(const struct tcphdr *tcphdr)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user