ozaki-r
423847a240
Add tests for a gateway not on the local subnet
...
The tests are derived from the example at
http://www.netbsd.org/docs/network/#nonsubnetgateway ,
which has come up in PR 50717.
2016-01-29 04:15:46 +00:00
christos
ffeb8dbf4e
Define _KERNTYPES for things that need it.
2016-01-23 21:22:45 +00:00
ozaki-r
a9e6d8e441
Add some tests for sysctl net.inet.ip.*
...
- net.inet.ip.redirect
- net.inet.ip.directed-broadcast (and net.inet.icmp.bmcastecho)
- net.inet.ip.ttl
From suzu-ken@IIJ (with tweaks by me)
2015-12-25 08:22:28 +00:00
knakahara
50f2e9d4c0
Refactor. No functional change.
2015-12-16 03:24:29 +00:00
ozaki-r
561514840d
Add more tests for IPv6 link-local addresses
...
The tests include a test for PR 50549.
2015-12-15 01:33:08 +00:00
knakahara
5ff0670ba7
add gif test for set_tunnel/delete_tunnel and recursion calls check
2015-12-08 05:56:18 +00:00
knakahara
674e3a0ad1
remove extra shebang and fix a potentially bug
2015-12-07 09:59:26 +00:00
ozaki-r
88c8544847
Make checks strict
...
rump.arp should fail with File exists (EEXIST).
2015-12-02 06:05:14 +00:00
ozaki-r
bb7b9eed2e
Add fastforward6 test
2015-11-24 02:37:33 +00:00
ozaki-r
911c3d16a0
Set timeout of ping to reduce execution time
2015-11-20 05:05:40 +00:00
ozaki-r
216db65823
Set timeout of ping6 to reduce execution time
2015-11-19 10:45:09 +00:00
ozaki-r
b86b70a179
Don't assign unused IP address
...
It sometimes creates an unexpected NDP cache.
2015-11-18 04:13:01 +00:00
ozaki-r
d54fcc93ce
Add tests for GC of neighbor caches
2015-11-17 06:44:13 +00:00
ozaki-r
3b8b75374e
Add tests of IPv6 link local address
...
From s-yamaguchi@IIJ
2015-11-12 05:05:24 +00:00
ozaki-r
9b59cf7aa1
Fix up the header
...
Remove unnecessary shebang and add missing keyword expansion,
copyright and license.
2015-11-12 05:01:28 +00:00
ozaki-r
3637fb5284
Add tests for RA
...
From s-yamaguchi@IIJ (with some tweaks by me)
2015-11-11 07:52:57 +00:00
ozaki-r
3eb9896334
Improve test stability
...
"deprecated" flag may not be reflected immediately. We need to add some
delay before checking the result.
2015-11-06 02:54:37 +00:00
ozaki-r
a6c882931d
Add tests for ifconfig parameters
...
From s-yamaguchi@IIJ
2015-11-05 02:57:36 +00:00
knakahara
9875a0c6a0
add basic if_gif tests to ATF.
2015-11-05 00:02:59 +00:00
christos
9ca3dc7d85
remove debugging test
2015-10-18 18:27:25 +00:00
christos
3075d03889
add code to dump the mbuf contents
2015-10-18 18:26:55 +00:00
ozaki-r
44c97db88f
Add tests for assigining/deleting IP addresses
...
The tests help to find defects related to creation/deletion
of routes/llentries and assigning/deleting of IP addresses.
2015-10-07 05:24:41 +00:00
ozaki-r
837fd81e06
Let ftp use a different output file from httpd's one
...
Previously the target file served by httpd and the output file of ftp
were identical (both index.html) on the filesystem.
2015-09-29 08:27:24 +00:00
ozaki-r
dacbac7968
Add simple tests for fastforward
...
The tests just do TCP communication via HTTP GET.
2015-09-28 01:54:14 +00:00
ozaki-r
c656a96f13
Improve test stability
...
ifconfig -a -v after ifconfig -a -z is expected to show '0 packets' for
all interface. However, shmif0 can receive packets between the two
operations. So we have to keep shmif0 down during such tests.
2015-09-15 09:51:01 +00:00
ozaki-r
f2a7b1339e
Add tests for IPv6 ICMP redirect
...
Note that tests for redirect timeout doesn't work for now due to
PR kern/50240.
From s-yamaguchi@IIJ (with some fixes and tweaks by ozaki-r)
2015-09-14 05:22:56 +00:00
ozaki-r
cc31cfa669
Add tests to check if nexthop route lookup works
...
These tests reproduce a panic on assertion "ro->_ro_rt ==NULL ||
ro->_ro_rt->rt_refcnt > 0" failure that had been fixed.
2015-09-04 05:24:57 +00:00
ozaki-r
933f94aa13
Add tests for ifconfig options
...
From s-yamaguchi@IIJ (with some tweaks by me)
2015-09-03 10:22:52 +00:00
ozaki-r
0dac802154
Reflect the current ARP cache implementation in tests
...
net.inet.arp.prune and net.inet.arp.refresh were obsoleted.
2015-08-31 08:08:20 +00:00
ozaki-r
4e97073b73
Add tests for ICMP redirect timeout
2015-08-31 06:16:08 +00:00
ozaki-r
67b961d3c9
Give a chance to send a DAD announce packet
...
ifconfig -w ensures IP addresses have left tentative state, however,
it doesn't guarantee that a DAD announce packet is sent. The kernel
clears tentative flag and then sends the packet so that ifconfig -w
can return before the kernel sends the packet.
2015-08-25 02:24:34 +00:00
ozaki-r
1a07436188
Disable another tentative state check
...
It's too ephemeral to check robustly.
2015-08-24 02:02:25 +00:00
ozaki-r
c8aae55351
Make a test a bit easy
...
Accept just 24h of expiration time in addition to 24h - a few seconds.
2015-08-18 00:58:35 +00:00
ozaki-r
c75b32f0a0
Improve test stability
...
A test for ndp -c was sometimes failed because between the deletion
and the check NS/NA messages were exchanged and a NDP cache was
recreated unexpectedly. To provent this situation, we do ifconfig
shmif0 down of the peer before the test, so the test won't be
interfered by the messages.
2015-08-17 07:47:21 +00:00
ozaki-r
e266b2d0dd
Improve test stability
...
- Take a diff between packet dumps and use it for packet checking
- it's resistant against packet reorder
- Seep 2 sec to make sure a NS message is sent
- Disable tentative state check for now
- it's too ephemeral to check robustly
2015-08-17 07:06:58 +00:00
ozaki-r
14dcf9ff75
Reflect a fix on rt_refcnt
...
The test was adjusted based on wrong behavior.
2015-08-13 10:22:21 +00:00
ozaki-r
3e44abc850
Fix head and cleanup definitions for cache_expiration tests
2015-08-10 09:32:01 +00:00
ozaki-r
94e6f63fa9
Fix cleanup
2015-08-10 09:31:13 +00:00
ozaki-r
17bcc6ffef
Check MAC address of ARP caches additionally
2015-08-07 05:32:12 +00:00
ozaki-r
7284c53128
Use rump.ping6 instead of ping6 with rumphijack(3)
2015-08-07 00:50:12 +00:00
ozaki-r
1f31785d33
Add basic tests for IPv6 Address Lifetime Expiry
2015-08-06 08:23:14 +00:00
ozaki-r
2179c9b76f
Check the output of ndp -d strictly
2015-08-04 07:43:25 +00:00
ozaki-r
2f55a7d3ed
Add tests for NDP
2015-08-03 09:54:20 +00:00
ozaki-r
25711fd317
Return 0 explicitly to avoid unexpected failures when $DEBUG=false
2015-07-31 10:16:36 +00:00
ozaki-r
6abe86b9fd
Add tests of cache overwriting
2015-07-31 02:39:12 +00:00
ozaki-r
bf665d2f84
Add tests for temp option
2015-07-31 02:35:09 +00:00
ozaki-r
5d6a850962
Remove remaining debug code
2015-07-31 00:23:54 +00:00
ozaki-r
5e8861aca5
Fix cleanup; halt all running rump_servers
2015-07-31 00:22:44 +00:00
ozaki-r
7a175f4063
Add tests for arp -a option
2015-07-30 08:41:18 +00:00
ozaki-r
3fd3aaa9ea
Fix TESTS_SH assignment
2015-07-30 05:43:42 +00:00