aboutsummaryrefslogtreecommitdiff
path: root/tools/regression/sockets/accf_data_attach
Commit message (Collapse)AuthorAgeFilesLines
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-162-2/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Remove $FreeBSD$: two-line .h patternWarner Losh2023-08-161-2/+0
| | | | Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
* Do a sweep and remove most WARNS=6 settingsKyle Evans2020-10-011-1/+0
| | | | | | | | | | | | | | | Repeating the default WARNS here makes it slightly more difficult to experiment with default WARNS changes, e.g. if we did something absolutely bananas and introduced a WARNS=7 and wanted to try lifting the default to that. Drop most of them; there is one in the blake2 kernel module, but I suspect it should be dropped -- the default WARNS in the rest of the build doesn't currently apply to kernel modules, and I haven't put too much thought into whether it makes sense to make it so. Notes: svn path=/head/; revision=366304
* Add a test case for a connection on accept queue that is reset beforeGleb Smirnoff2017-08-241-8/+35
| | | | | | | | it is accepted. In that case accept(2) shall return ECONNABORTED. Accept filters provide help with easily replicating that case. Notes: svn path=/head/; revision=322858
* Make the test to leave one connection on the incomplete queueGleb Smirnoff2017-06-081-0/+14
| | | | | | | before exiting. This examines some race conditions in kernel. Notes: svn path=/head/; revision=319684
* Improve this unit test: make sure that the accept filter actually works.Gleb Smirnoff2017-06-081-7/+38
| | | | | | | | | | Before this test just checked scenario of setting and removing the accept filter at different states of the socket. Now it also checks that accept filter works: we connect to the server, and then check that we can't accept, then we send 1 byte of data and check again. Notes: svn path=/head/; revision=319683
* - Check for accf_filter before running the tests, otherwise it will alwaysEnji Cooper2016-01-151-2/+13
| | | | | | | | fail at subtest 9/11 - Use strncpy instead of strcpy with afa.af_name Notes: svn path=/head/; revision=294103
* Fix -Wunused warnings, bump WARNS to 6Enji Cooper2015-04-102-4/+2
| | | | | | | | | | | | | | The testcase fails today on subtest # 9 The output is still broken if prove -rv is run and the testcase aborts prematurely (the testcase doesn't really conform to TAP protocol properly, except when it completes fully) MFC after: 1 week Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=281355
* NO_MAN= has been deprecated in favor of MAN= for some time, go aheadWarner Losh2014-04-131-1/+1
| | | | | | | | | and finish the job. ncurses is now the only Makefile in the tree that uses it since it wasn't a simple mechanical change, and will be addressed in a future commit. Notes: svn path=/head/; revision=264400
* - Remove a bogus test: setsockopt() doesn't return a length, getsockopt()John Baldwin2009-09-231-4/+1
| | | | | | | | does. - Use %z to printf a size_t to fix compile on 64-bit platforms. Notes: svn path=/head/; revision=197432
* o setsockopt(2) cannot remove accept filter. [1]Maxim Konovalov2005-06-111-10/+46
| | | | | | | | | | | | | o getsockopt(SO_ACCEPTFILTER) always returns success on listen socket even we didn't install accept filter on the socket. o Fix these bugs and add regression tests for them. Submitted by: Igor Sysoev [1] Reviewed by: alfred MFC after: 2 weeks Notes: svn path=/head/; revision=147300
* Start the dreaded NOFOO -> NO_FOO conversion.Ruslan Ermilov2004-12-211-1/+1
| | | | | | | OK'ed by: core Notes: svn path=/head/; revision=139103
* Switch over to a different, more flexible test output protocol that'sNik Clayton2004-11-112-16/+36
| | | | | | | | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=137587
* For variables that are only checked with defined(), don't provideRuslan Ermilov2004-10-241-1/+1
| | | | | | | any fake value. Notes: svn path=/head/; revision=136910
* Use errx() instead of fprintf()/exit() for conciseness.Robert Watson2004-10-231-65/+38
| | | | | | | Suggested by: ru (some time ago) Notes: svn path=/head/; revision=136844
* Simple attachment regression test to attach the "accf_data" acceptRobert Watson2004-07-262-0/+211
filter to an inet socket and check at various points during the socket life cycle that the filter can or cannot be attached, and that once attached that the right one is attached and that it can be queried. Notes: svn path=/head/; revision=132649