summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_subr.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>1997-12-19 03:36:15 +0000
committerjulian <julian@FreeBSD.org>1997-12-19 03:36:15 +0000
commitefed7b6cdc3b52ec7b15070962717a321fead604 (patch)
tree29973ac1d2003e2344de2681c47b3285276ddbdc /sys/netinet/tcp_subr.c
parent21d1d08bb0b58cff32679b91e2d84e00a4bbcf98 (diff)
downloadFreeBSD-src-efed7b6cdc3b52ec7b15070962717a321fead604.zip
FreeBSD-src-efed7b6cdc3b52ec7b15070962717a321fead604.tar.gz
Fix an incredibly horrible bug in the ipfw code
where if you are using the "reset tcp" firewall command, the kernel would write ethernet headers onto random kernel stack locations. Fought to the death by: terry, julian, archie. fix valid for 2.2 series as well.
Diffstat (limited to 'sys/netinet/tcp_subr.c')
-rw-r--r--sys/netinet/tcp_subr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c
index 23d8a0b..97b2a54 100644
--- a/sys/netinet/tcp_subr.c
+++ b/sys/netinet/tcp_subr.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)tcp_subr.c 8.2 (Berkeley) 5/24/95
- * $Id: tcp_subr.c,v 1.38 1997/09/16 18:36:06 joerg Exp $
+ * $Id: tcp_subr.c,v 1.39 1997/10/28 15:58:53 bde Exp $
*/
#include "opt_tcpdebug.h"
@@ -164,6 +164,8 @@ tcp_template(tp)
*
* In any case the ack and sequence number of the transmitted
* segment are as specified by the parameters.
+ *
+ * NOTE: If m != NULL, then ti must point to *inside* the mbuf.
*/
void
tcp_respond(tp, ti, m, ack, seq, flags)
OpenPOWER on IntegriCloud