1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2025-01-01 12:54:07 +00:00

Log ACK behind

This commit is contained in:
M66B 2016-02-13 12:24:18 +01:00
parent 9310d71dcf
commit 6b7d4ed017

View file

@ -661,7 +661,9 @@ jboolean handle_tcp(const struct arguments *args,
log_android(ANDROID_LOG_WARN, "%s enabled keep alive", session);
}
else if (compare_u16(ntohl(tcphdr->ack_seq), cur->local_seq) < 0) {
log_android(ANDROID_LOG_WARN, "%s previous ACK", session);
log_android(ANDROID_LOG_WARN, "%s previous ACK %d",
session, ntohl(tcphdr->ack_seq) - cur->local_seq);
// TODO terminate connection if difference too large
return 1;
}
else {