mirror of https://github.com/M66B/NetGuard.git
Revert "Revert "Small TCP protocol fix""
This reverts commit ab6431cb0e
.
This commit is contained in:
parent
ab6431cb0e
commit
5fa6312c19
|
@ -807,7 +807,7 @@ jboolean handle_tcp(const struct arguments *args,
|
|||
memset(&rst, 0, sizeof(struct tcp_session));
|
||||
rst.version = 4;
|
||||
rst.local_seq = ntohl(tcphdr->ack_seq);
|
||||
rst.remote_seq = ntohl(tcphdr->seq) + datalen + (tcphdr->fin ? 1 : 0);
|
||||
rst.remote_seq = ntohl(tcphdr->seq) + datalen + (tcphdr->syn || tcphdr->fin ? 1 : 0);
|
||||
|
||||
if (version == 4) {
|
||||
rst.saddr.ip4 = (__be32) ip4->saddr;
|
||||
|
|
Loading…
Reference in New Issue