summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjlemon <jlemon@FreeBSD.org>2001-03-09 08:13:08 +0000
committerjlemon <jlemon@FreeBSD.org>2001-03-09 08:13:08 +0000
commite8c0cc0af2cba10cc1a43be82ba2a811596cbf73 (patch)
treea962f9932c626bf7ea5e7bd481eca697d9f57a52 /sys
parentf108bc4208540dee14fdc0004145f51fbd89e4ac (diff)
downloadFreeBSD-src-e8c0cc0af2cba10cc1a43be82ba2a811596cbf73.zip
FreeBSD-src-e8c0cc0af2cba10cc1a43be82ba2a811596cbf73.tar.gz
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
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/ip_fw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/ip_fw.c b/sys/netinet/ip_fw.c
index ebb1370..dcff9e7 100644
--- a/sys/netinet/ip_fw.c
+++ b/sys/netinet/ip_fw.c
@@ -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++;
OpenPOWER on IntegriCloud