1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-26 11:47:31 +00:00
freebsd/tools/regression/netinet/tcpfullwindowrst/tcpfullwindowrst.t
Nik Clayton 2ba5c2107e The following code sets up two connected TCP sockets that send data to each
other until the window is closed. Then one of the sockets is closed, which
will generate a RST once the TCP at the other socket does a window probe.

All versions of FreeBSD prior to 11/26/2004 will ignore this RST into a 0
window, causing the connection (and application) to hang indefinitely.
On patched versions of FreeBSD (and other operating systems), the RST
will be accepted and the program will exit in a few seconds.

Submitted by:	Michiel Boland
Reviewed by:	silby
2004-12-01 12:12:12 +00:00

8 lines
92 B
Bash

#!/bin/sh
#
# $FreeBSD$
make tcpfullwindowrsttest 2>&1 > /dev/null
./tcpfullwindowrsttest