summaryrefslogtreecommitdiffstats
path: root/tools/regression/netinet
Commit message (Collapse)AuthorAgeFilesLines
* Use WARNS?= instead of WARNS= in Makefiles so that global warningrwatson2005-01-221-1/+1
| | | | | | settings can override local ones. Pointed out by: ru
* In refactoring the test before committing, a pointer was passed insteadrwatson2005-01-161-2/+2
| | | | | | | of a structure for the sockaddr_in. Pass the pointer to connect() instead of the pointer to the pointer. Specify a port number to connect to.
* Add udpconnectjail, a simple regression test to exercise an (as yet)rwatson2005-01-162-0/+117
| | | | | | | unfixed bug in the jail() implementation relating to using the connect() system call on UDP sockets. PR: 26506
* Start the dreaded NOFOO -> NO_FOO conversion.ru2004-12-214-4/+4
| | | | OK'ed by: core
* The following code sets up two connected TCP sockets that send data to eachnik2004-12-013-0/+144
| | | | | | | | | | | | | 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
* Switch over to a different, more flexible test output protocol that'snik2004-11-112-1/+12
| | | | | | | | | | | | | | | | | | | | understood by Perl's Test::Harness module and prove(1) commands. Update README to describe the new protocol. The work's broken down into two main sets of changes. First, update the existing test programs (shell scripts and C programs) to produce output in the ok/not ok format, and to, where possible, also produce a header describing the number of tests that are expected to be run. Second, provide the .t files that actually run the tests. In some cases these are copies of, or very similar too, scripts that already existed. I've kept the old scripts around so that it's possible to verify that behaviour under this new system (in terms of whether or not a test fails) is identical to the behaviour under the old system. Add a TODO file.
* For variables that are only checked with defined(), don't provideru2004-10-243-3/+3
| | | | any fake value.
* Use errx() instead of perror()/exit() for conciseness.rwatson2004-10-232-50/+28
| | | | Suggested by: ru (some time ago)
* Fixed a typo.ru2004-10-171-1/+1
| | | | Submitted by: Pawel Worach
* Resort unprivileged uid with privileged socket after unprivileged uidrwatson2004-10-111-4/+6
| | | | | | | with privileged socket in test runs. If running unprivileged and instructed to use unprivileged sockets, don't try and use raw sockets.
* A number of improvements to the IP socket option API regression test:rwatson2004-10-111-248/+357
| | | | | | | | | | | | - Consistently use err/errx/warnx throughout, rather than using perror() and exit(). - Teach the tests how to better manage (and therefore test) privilege: in particular, how to create sockes with root credentials but exercise the privileges with non-root credentials, etc. - Teach the test suite to apply each of the non-IP_HDRINCL options across each of SOCK_DGRAM, SOCK_STREAM, and SOCK_RAW.
* Add a simple exercise suite for IP-level socket options. The suiterwatson2004-10-112-0/+735
| | | | | | | | | | | | atempts to read and write various IP-level socket options as root and nobody, making sure the initial values are as expected, that they can be changed to valid values and take effect, etc. No attempt is made to check for the correct implementation of side effects (such as changes in packet headers) as yet. The IP options section is currently broken but will be fixed shortly. Not all multicast options are currently tested.
* Add a simple C-based TCP connection generator, which generates andrwatson2004-10-092-0/+160
| | | | | | closes the specified number of TCP connections sequentially and synchronously. Useful for trying to trigger races in the accept code.
* Add a very basic README for tcpstream.rwatson2004-09-131-0/+20
|
* Add tcpstream, a simple TCP stream generator that uses a pseudo-randomrwatson2004-09-132-0/+253
sequence to detect data corruption visible to an application.
OpenPOWER on IntegriCloud