Commit Graph

25 Commits

Author SHA1 Message Date
jruoho
543143cf18 Move more PR references from comments to ATF's "descr". 2012-03-18 09:46:50 +00:00
christos
60e8629a5d fix fallout from including signal.h from rump_syscallargs.h 2011-06-26 13:15:22 +00:00
martin
7e35902cb8 Use raw buffer size (not aligned value) to limit packet size 2011-01-05 14:43:40 +00:00
martin
db69e273a2 Fix alignment of sndbuf (sparc64 got a SIGBUS in this test) 2011-01-05 14:08:12 +00:00
pooka
bc1c80f7e8 Substitute a surgical rump_server configuration for rump_allserver
now that it's possible.  With warm fs cache, the startup time of
the former is 0.01s and the latter 0.1s.  With cold caches it's
0.2s vs 2s.
2010-12-30 16:58:07 +00:00
pooka
5a30a389c0 atf-check => atf_check 2010-12-18 08:35:53 +00:00
pooka
91ed45ab3f use ping -n, since technically we don't have dns 2010-12-14 19:08:22 +00:00
pooka
756d5b62e3 Add another version of the simple ping test, this time written as a
shell script and using rump_server, rump.ifconfig and rump.ping.

XXX: uses rump_allserver for now, though, since i noticed a problem
where the rump kernel syscall vector does not get updated for
dlopen()'d libraries (and hence if you dlopen librumpnet.so, socket()
still gives ENOSYS).  Me be fixink it later.
2010-12-14 11:03:17 +00:00
jmmv
decf2b5e0f 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.
2010-11-07 17:51:16 +00:00
christos
fb0d4bcc11 make that u_int, because it is passed as a socket option. 2010-11-03 21:44:46 +00:00
christos
0f10aa9dce add Makefile.inc everywhere so that we can set WARNS=4 by default. Amazing
how many bugs this found :-)
2010-11-03 16:10:19 +00:00
pooka
cf1237d3ad setsockopt() wants int instead of size_t. Should fix this on LP64. 2010-08-26 17:24:14 +00:00
pooka
b846a386dc Add a delay between startup of pinger and pingee here too.
XXX: there's apparently some race condition which appears to trigger
if a broadcast arp arrives around the same time as the arpwhohas
is sent.  This causes original packet to never be sent by the
arpwhohas requestor.  If this rings a bell to someone, please let
me know.
2010-08-23 10:49:27 +00:00
pooka
217080730a .. put a timeout here just in case the receive does not increase
the counter.
2010-08-18 21:23:48 +00:00
pooka
b3495ecc48 Add a test for the "ping of death". Declare the test a success
when the receiver increases the "ip toolong" stat counter.
2010-08-18 21:22:34 +00:00
pooka
cfe11fb280 send pings in ascending order 2010-08-18 17:49:03 +00:00
pooka
9a3c295ef2 Add a two-way floodping test and a test which sends icmp echos with
various sizes.
2010-08-18 16:39:22 +00:00
pooka
75487b056b add a test which floodpings another host 2010-08-17 15:51:11 +00:00
pooka
96f76684bb test that kernel reponds to ping 2010-08-09 15:08:43 +00:00
pooka
3c23c993d0 Remove stuff handled by common code now. 2010-07-26 14:10:31 +00:00
pooka
6b62441252 Calculate broadcast IP instead of requiring it as a config parameter. 2010-07-26 14:07:04 +00:00
pooka
772871ea1c make interface/routing configuration a bit more generic 2010-07-25 21:39:20 +00:00
pooka
1d14124dd5 fix routine name in error message 2010-07-18 12:43:22 +00:00
jmmv
9d0b4b5bb8 Get rid of static Atffiles and let bsd.test.mk generate them on the fly. 2010-07-13 21:13:21 +00:00
pooka
3665ca1dbf 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.
2010-07-04 19:30:59 +00:00