summaryrefslogtreecommitdiff
path: root/sys/dev/microcode/ral/microcode.h
diff options
context:
space:
mode:
authorpooka <pooka@NetBSD.org>2010-07-04 19:30:59 +0000
committerpooka <pooka@NetBSD.org>2010-07-04 19:30:59 +0000
commit3665ca1dbf8000667a9c354488660479e221d870 (patch)
treef58151810638292e6d1f2d50b2330d798e7a7867 /sys/dev/microcode/ral/microcode.h
parenta95d92a275f3f01a814b19dafef22bbbd668249b (diff)
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.
Diffstat (limited to 'sys/dev/microcode/ral/microcode.h')
0 files changed, 0 insertions, 0 deletions