mirror of https://github.com/M66B/NetGuard.git
parent
20ea73264a
commit
567f3dfcb1
|
@ -270,9 +270,6 @@ void handle_ip(const struct arguments *args,
|
|||
if (tcp->rst)
|
||||
flags[flen++] = 'R';
|
||||
|
||||
if (tcp->urg)
|
||||
report_error(args, 3, "TCP out of band data");
|
||||
|
||||
// TODO checksum
|
||||
}
|
||||
else if (protocol != IPPROTO_HOPOPTS && protocol != IPPROTO_IGMP && protocol != IPPROTO_ESP)
|
||||
|
|
|
@ -441,6 +441,10 @@ jboolean handle_tcp(const struct arguments *args,
|
|||
datalen, ntohs(tcphdr->window), uid);
|
||||
log_android(tcphdr->urg ? ANDROID_LOG_WARN : ANDROID_LOG_DEBUG, packet);
|
||||
|
||||
// Drop URG data
|
||||
if (tcphdr->urg)
|
||||
return 1;
|
||||
|
||||
// Check session
|
||||
if (cur == NULL) {
|
||||
if (tcphdr->syn) {
|
||||
|
|
Loading…
Reference in New Issue