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