mirror of https://github.com/M66B/NetGuard.git
Check for TCP urgent data
This commit is contained in:
parent
90c15cae82
commit
27b19d630d
|
@ -254,8 +254,9 @@ void handle_ip(const struct arguments *args,
|
||||||
flags[flen++] = 'F';
|
flags[flen++] = 'F';
|
||||||
if (tcp->rst)
|
if (tcp->rst)
|
||||||
flags[flen++] = 'R';
|
flags[flen++] = 'R';
|
||||||
|
|
||||||
if (tcp->urg)
|
if (tcp->urg)
|
||||||
flags[flen++] = 'U';
|
report_error(args, 3, "TCP out of band data");
|
||||||
|
|
||||||
// TODO checksum
|
// TODO checksum
|
||||||
}
|
}
|
||||||
|
|
|
@ -1007,7 +1007,6 @@ ssize_t write_tcp(const struct arguments *args, const struct tcp_session *cur,
|
||||||
tcp->fin = (__u16) fin;
|
tcp->fin = (__u16) fin;
|
||||||
tcp->rst = (__u16) rst;
|
tcp->rst = (__u16) rst;
|
||||||
tcp->window = htons(cur->recv_window >> cur->recv_scale);
|
tcp->window = htons(cur->recv_window >> cur->recv_scale);
|
||||||
tcp->urg_ptr;
|
|
||||||
|
|
||||||
if (!tcp->ack)
|
if (!tcp->ack)
|
||||||
tcp->ack_seq = 0;
|
tcp->ack_seq = 0;
|
||||||
|
|
Loading…
Reference in New Issue