Check for TCP urgent data

This commit is contained in:
M66B 2016-03-05 14:12:10 +01:00
parent 90c15cae82
commit 27b19d630d
2 changed files with 2 additions and 2 deletions

View File

@ -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
}

View File

@ -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;