Home | History | Annotate | Download | only in icmp
History log of /src/tests/net/icmp/t_forward.c
RevisionDateAuthorComments
 1.10  13-Jan-2017  christos Don't play with "../.." in includes for h_macros.h; deal with it centrally.
Minor fixes.
 1.9  26-Feb-2015  martin branches: 1.9.2;
Do not use artificial low timeouts - slow machines might be still paging
in all the rump environment. Bump timeout from 4 seconds to 20 (my shark
needs ~9).
 1.8  18-Mar-2012  jruoho Move more PR references from comments to ATF's "descr".
 1.7  07-Nov-2010  jmmv branches: 1.7.6;
Adjusts tests after import of atf-0.12:

- The use.fs property is gone.
- Mark the tests/fs/t_create:attrs test as broken when using the default
unprivileged-user:_atf setting. This probably deserves a fix somehow
but I'm not sure at this point.
 1.6  03-Nov-2010  christos add Makefile.inc everywhere so that we can set WARNS=4 by default. Amazing
how many bugs this found :-)
 1.5  26-Jul-2010  pooka Remove stuff handled by common code now.
 1.4  26-Jul-2010  pooka Calculate broadcast IP instead of requiring it as a config parameter.
 1.3  25-Jul-2010  pooka make interface/routing configuration a bit more generic
 1.2  18-Jul-2010  pooka fix routine name in error message
 1.1  04-Jul-2010  pooka Add test case for PR kern/43548

Due to the nature of the feature under test, this one is a little
different, so let me explain how it works.

The test program forks and bootstraps a rump kernel in both processes.
It then configures shared memory interfaces in both. shmif is nice
in that it uses a mmaped file as the bus and does not require root
privileges for communication between two (or more) processes. The
child process then proceeds to increase icmp.returndatabytes as
indicated by the PR, while the parent process sets the global TTL
of the rump kernel to 1 (note: both values only affect the respective
rump kernels, not each other or more importantly the host kernel).
The parent then sends the bad packet which is supposed to be routed
by the child. If ip_icmp.c was too old, *boom* + fail; otherwise
nothing bad happens and the test exists with success after one
second.

Eventually this test can be extended into a framework for automated
testing of any networking code which requires (arbitrarily complex)
routing setups.
 1.7.6.1  17-Apr-2012  yamt sync with head
 1.9.2.1  20-Mar-2017  pgoyette Sync with HEAD

RSS XML Feed