The TCP sequence number used for sending a RST with the ipfw reset rule

is already in host byte order, so do not swap it again.

Reviewed by:	bfumerola
This commit is contained in:
Jonathan Lemon 2001-03-09 08:13:08 +00:00
parent 5db078a9be
commit 32676c2d1f

View File

@ -1433,7 +1433,7 @@ got_match:
tip->ti_len = ip_len - hlen - (tip->ti_off << 2);
if (tcp->th_flags & TH_ACK) {
tcp_respond(NULL, (void *)ip, tcp, *m,
(tcp_seq)0, ntohl(tcp->th_ack), TH_RST);
(tcp_seq)0, tcp->th_ack, TH_RST);
} else {
if (tcp->th_flags & TH_SYN)
tip->ti_len++;