summaryrefslogtreecommitdiffstats
path: root/tools/regression/netinet
Commit message (Collapse)AuthorAgeFilesLines
* Use print as a function for Python 3 [PEP 3105]rodrigc2015-11-191-0/+1
| | | | | | | | Import print_function from the __future__ module to activate this for Python 2. This works as far back as Python 2.6.0a2: https://docs.python.org/2/library/__future__.html [PEP 3105] https://www.python.org/dev/peps/pep-3105/
* Reassign copyright statements on several files from Advancedjhb2015-04-231-1/+1
| | | | | | | Computing Technologies LLC to Hudson River Trading LLC. Approved by: Hudson River Trading LLC (who owns ACT LLC) MFC after: 1 week
* NO_MAN= has been deprecated in favor of MAN= for some time, go aheadimp2014-04-1316-16/+16
| | | | | | 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.
* Remove unused variable.emaste2012-11-201-1/+0
|
* Use '%zu' and '%zd' as appropriate for size_t / ssize_t.emaste2012-11-191-2/+2
|
* Covert regression test to python 3eadler2012-10-221-7/+7
| | | | | Approved by: cperciva MFC after: 3 days
* Properly initialise the "len" argument to getsockname(2) in the tcpdroprwatson2011-08-061-0/+1
| | | | | | | regression test so that it works (more) consistently. Approved by: re (bz) Sponsored by: Juniper Networks
* Add a very simple IPDIVERT test, which creates IP divert sockets andrwatson2011-06-042-0/+177
| | | | | | | | | | | | checks for collision/non-collision properties in binding them. This test would have identified a bug recently reported on current@ involding my disaggregation of the pcbinfo lock. It would be nice if this test also exercised packet diversion and injection, but that is for another day. MFC after: 3 days Sponsored by: Juniper Networks, Inc.
* Upgrade jail(2) to latest jail(2) API to make the regression test workbz2011-05-301-2/+9
| | | | | | | again. Eventually should switch to jail_set(2). Reported by: rwatson MFC after: 10 days
* Rework TIMEWAIT regression test so that kernel-allocated port numbers arerwatson2011-05-301-39/+84
| | | | | | | | used rather than a fixed userspace one, avoiding conflicts between the two test runs. MFC after: 3 days Sponsored by: Juniper Networks, Inc.
* Add missing include of stdio.h.rwatson2011-05-301-0/+1
| | | | | MFC after: 3 days Sponsored by: Juniper Networks, Inc.
* In the tcpdrop regression test, allow the kernel to allocate us a portrwatson2011-05-301-37/+44
| | | | | | | | | rather than using a fixed port number. This means that the regression test can be run many times in a row without waiting on TIMEWAIT to release a hard-coded port number. MFC after: 3 days Sponsored by: Juniper Networks, Inc.
* Add missing #include of err.h.rwatson2011-05-301-0/+1
| | | | | MFC after: 3 days Sponsored by: Juniper Networks, Inc.
* Add a queue to hold packets while we await an ARP reply.gnn2010-11-123-0/+178
| | | | | | | | | | | | | | | | | | | | | | When a fast machine first brings up some non TCP networking program it is quite possible that we will drop packets due to the fact that only one packet can be held per ARP entry. This leads to packets being missed when a program starts or restarts if the ARP data is not currently in the ARP cache. This code adds a new sysctl, net.link.ether.inet.maxhold, which defines a system wide maximum number of packets to be held in each ARP entry. Up to maxhold packets are queued until an ARP reply is received or the ARP times out. The default setting is the old value of 1 which has been part of the BSD networking code since time immemorial. Expose the time we hold an incomplete ARP entry by adding the sysctl net.link.ether.inet.wait, which defaults to 20 seconds, the value used when the new ARP code was added.. Reviewed by: bz, rpaulo MFC after: 3 weeks
* Update udpzerobyte to understand that passing 0 as a length to recv(2)rwatson2008-10-071-5/+26
| | | | | | | | will cause it to return 0, not EAGAIN. Add UNIX domain socket support to udpzerobyte, which suggests this regression test should be moved to the general sockets test area rather than netinet.
* Add IPv6 support to zero-size UDP transmit/receive test.rwatson2008-10-071-27/+47
|
* Regression test for the loopback handling of zero-length UDP packets, whichrwatson2008-10-072-0/+111
| | | | should be delivered but without payload.
* This is a regression test to verify the proper behavior of IP ID generationsilby2008-02-061-0/+76
| | | | | code. It will push 200000 packets, then report back what the min and max periods it saw for different IDs were.
* Convert errx(-1, ..., strerror(errno)) to err(-1, ...).bz2007-11-281-8/+8
| | | | Discussed with: rwatson
* Add support for tcpmd5 tests.bz2007-11-282-13/+63
| | | | | | | | | | Add README.tcpmd5 to describe how to build a simple test setup and run tests. Convert compile time options to run time options [1]. Discussed with: rwatson Suggested by: rwatson [1]
* Add regression test for SSM code.bms2007-06-122-0/+798
|
* Import rewrite of IPv4 socket multicast layer to support source-specificbms2007-06-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and protocol-independent host mode multicast. The code is written to accomodate IPv6, IGMPv3 and MLDv2 with only a little additional work. This change only pertains to FreeBSD's use as a multicast end-station and does not concern multicast routing; for an IGMPv3/MLDv2 router implementation, consider the XORP project. The work is based on Wilbert de Graaf's IGMPv3 code drop for FreeBSD 4.6, which is available at: http://www.kloosterhof.com/wilbert/igmpv3.html Summary * IPv4 multicast socket processing is now moved out of ip_output.c into a new module, in_mcast.c. * The in_mcast.c module implements the IPv4 legacy any-source API in terms of the protocol-independent source-specific API. * Source filters are lazy allocated as the common case does not use them. They are part of per inpcb state and are covered by the inpcb lock. * struct ip_mreqn is now supported to allow applications to specify multicast joins by interface index in the legacy IPv4 any-source API. * In UDP, an incoming multicast datagram only requires that the source port matches the 4-tuple if the socket was already bound by source port. An unbound socket SHOULD be able to receive multicasts sent from an ephemeral source port. * The UDP socket multicast filter mode defaults to exclusive, that is, sources present in the per-socket list will be blocked from delivery. * The RFC 3678 userland functions have been added to libc: setsourcefilter, getsourcefilter, setipv4sourcefilter, getipv4sourcefilter. * Definitions for IGMPv3 are merged but not yet used. * struct sockaddr_storage is now referenced from <netinet/in.h>. It is therefore defined there if not already declared in the same way as for the C99 types. * The RFC 1724 hack (specify 0.0.0.0/8 addresses to IP_MULTICAST_IF which are then interpreted as interface indexes) is now deprecated. * A patch for the Rhyolite.com routed in the FreeBSD base system is available in the -net archives. This only affects individuals running RIPv1 or RIPv2 via point-to-point and/or unnumbered interfaces. * Make IPv6 detach path similar to IPv4's in code flow; functionally same. * Bump __FreeBSD_version to 700048; see UPDATING. This work was financially supported by another FreeBSD committer. Obtained from: p4://bms_netdev Submitted by: Wilbert de Graaf (original work) Reviewed by: rwatson (locking), silence from fenner, net@ (but with encouragement)
* Nuke ipblock. A more complete multicast regression test suite is on the way.bms2007-04-122-231/+0
|
* Fix a bug whereby group addresses were incorrectly computed in the test.bms2007-04-091-2/+2
| | | | | | [Since the change to strict refcounting for in_multi objects, this test began to fail; formerly the refcount was a count of the number of requests for a given address, NOT a count of pointers to the object.]
* Add a small test program for the additional socket options whichbms2007-04-062-0/+231
| | | | RFC 3678 (Source-specific Multicast API) brings to FreeBSD.
* Add raw IP support (protocol 114) to ipbroadcast regression test.bms2007-03-131-3/+19
|
* Add -A to specify local address for bind().bms2007-03-081-14/+24
|
* Support IP_SENDIF in -CURRENT.bms2007-03-081-10/+68
|
* Add -t to set IP TTL.bms2007-03-011-3/+19
|
* Introduce a test program for IPv4 broadcast datagram send.bms2007-03-012-0/+276
|
* For the IPv4 multicast membership socket regression test:bms2007-02-021-12/+58
| | | | | | Add command line flags to increase the number of test iterations. Be deterministic by default, for automated operation. Better document assumptions.
* o style.Makefile(5): WARNS= -> WARNS?=.maxim2006-07-094-4/+4
|
* o Convert to Test::Harness testing infratructure.maxim2006-05-201-0/+22
|
* o A tiny regression test exposes bug in rip_disconnect().maxim2006-05-142-0/+85
|
* Add multicast group join/leave functionality to IPv4 regressionbms2006-05-141-10/+68
| | | | test suite.
* Add a second pass to the close-before-accept test using a call to therwatson2006-04-031-5/+59
| | | | tcp drop sysctl. This should exercise the ECONNABORTED accept case.
* Add regression test for tcpdrop sysctl.rwatson2006-04-032-0/+257
|
* Add a regression test to exercise the case where accept() is called andrwatson2006-04-032-0/+156
| | | | the next waiting socket has had a close on the remote endpoint already.
* When running the second part of the test, kill off the server process fromrwatson2006-04-021-7/+10
| | | | | | | the first part before starting, or the TCP port we want to bind may be in use still. Sleep for a short period between tests. Use SIGTERM instead of SIGKILL.
* Pass the right pid into the parent and child tasks so that when a testrwatson2006-04-021-2/+2
| | | | fails, we kill the right partner process.
* Add makefile for tcpsocktimewait missed in previous commit.rwatson2006-04-021-0/+9
|
* Add a short regression test that triggers a TCP socket to enter time waitrwatson2006-04-021-0/+169
| | | | | while the socket is still open; one variant closes the socket while in time wait, and a second lets time wait expire while the socket is open.
* Style: NO_MAN doesn't need any value.ru2006-03-154-4/+4
|
* Add a regression test to test two variations on the same bug: joining arwatson2005-09-052-0/+251
| | | | | | | | | | | | | | multicast group using a raw socket, then removing the interface on which the group is found, and joining a multicast group using a udp socket, then removing the interface on which the group is found. An if_disc interface is used as the interface on which to attach. NB: A panic currently results from running this regression test, so do so with caution. PR: 77665 Reported by: Gavin Atkinson <gavin dot atkinson at ury dot york dot ac dot uk> Reported by: Brooks Davis <brooks at FreeBSD dot org>
* Change jail IP from 1.0.0.127 to 127.0.0.1, which shows, that this testpjd2005-07-231-1/+1
| | | | doesn't examine the real issue as it pass without problems.
* Add a simple multicast socket regression test set:rwatson2005-07-222-0/+471
| | | | | | | | | | | | | - Test that the basic socket options have the right defaults, that we can change them, read them back, etc. - Add and remove some multicast addresses. - Send a loopback multicast address and make sure it arrives intact. There's more that could be done here, but it's a start. MFC after: 3 days
* Add an #ifdef'd non-blocking version of the test.rwatson2005-05-161-1/+10
| | | | Update copyright.
* 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
OpenPOWER on IntegriCloud