Commit Graph

42 Commits

Author SHA1 Message Date
bad
48e354a3ed Get rid of all the -lrumpdev and -lrumpvfs that are no longer needed
after moving rump's mainbus from rumpdev to rumpkern.

Produces the same atf-run results as before.
2019-05-13 17:55:07 +00:00
ozaki-r
8a507e3468 tests: dump kernel stats on cleanup 2019-04-18 07:56:54 +00:00
ozaki-r
0602b7c074 Adjust outputs of route's flags to include a numeric output 2017-12-18 04:11:46 +00:00
ozaki-r
960a3e1e52 Add tests of rtcache invalidation 2017-09-20 09:36:20 +00:00
ozaki-r
3f30ca4e9f Clean up clunky eval strings
- Remove unnecessary \ at EOL
  - This allows to omit ; too
- Remove unnecessary quotes for arguments of atf_set
- Don't expand $DEBUG in eval
  - We expect it's expanded on execution

Suggested by kre@
2017-08-03 03:16:26 +00:00
ozaki-r
3cd9889005 Check if ARP/NDP entries are purged when a related route is deleted 2017-06-30 07:57:12 +00:00
ozaki-r
da803ed70d Restore ARP/NDP entries to route show and netstat -r
Requested by dyoung@ some time ago
2017-06-28 04:14:53 +00:00
ozaki-r
fcbd6bf4fa Drop RTF_LLINFO flag (now it's RTF_LLDATA) from local routes
They don't have llinfo anymore. And also the change fixes unexpected
behavior of ARP proxy.
2017-06-28 04:10:47 +00:00
ozaki-r
d15c5ed0e5 Fix wrong comment 2017-06-27 04:56:13 +00:00
ozaki-r
7eee4dba21 Check existence of ARP/NDP entries
Checking ARP/NDP entries is valid rather than checking routes.
2017-06-27 04:52:45 +00:00
ozaki-r
33479c318b Fix typo 2017-03-24 04:06:19 +00:00
ozaki-r
0cc8b50659 Add test cases for PR kern/52077
From s-yamaguchi@IIJ
2017-03-24 03:47:25 +00:00
ozaki-r
e6b76a5e72 Add some tests to change flags of routes 2017-03-22 06:30:00 +00:00
ozaki-r
3772aa0189 Add a test case for PR kern/52083 2017-03-21 04:03:17 +00:00
ozaki-r
ad4db0eb05 Add ifconfig -w to improve test stability 2016-12-21 02:46:08 +00:00
ozaki-r
5a83ceea44 Share rump_server start/stop and interface creation/destruction functions
The common functions store socks of rump_servers, interfaces of rump_servers
and buses that intefaces connect and allow to destroy them with common
functions without specifying which socks, interfaces and buses we should
destroy.

This change reduces lots of similar setup/cleanup codes.
2016-11-25 08:51:16 +00:00
ozaki-r
927b18c962 Move route check functions to net_common.sh 2016-11-24 09:05:16 +00:00
ozaki-r
1c189061c4 Accept DEBUG environment variable
By doing so, we can easily turn DEBUG on/off without modifying
the ATF scripts.
2016-11-07 05:25:36 +00:00
roy
9fcb01a336 Fix test_lo6 because ::1 now has RTF_LOCAL assigned to it. 2016-08-16 10:34:12 +00:00
roy
e746a65f68 Add -lrumpdev so that tests work again. 2016-08-10 23:00:39 +00:00
ozaki-r
3db8106383 Add some tests for route change 2016-07-21 02:02:30 +00:00
ozaki-r
852524ba75 Remove extra grep 2016-07-21 01:56:54 +00:00
ozaki-r
261b1cf92f Make the test name self-descriptive 2016-07-21 01:56:27 +00:00
ozaki-r
bdcbfcd17f Fix test names 2016-07-08 08:27:07 +00:00
ozaki-r
e8cb777b69 Tweak route get outputs to make tests work
"expire" value of route get output is unexpectedly a negative value
on rump kernel for some reasons and the tests almost always fail
on babylon5. So just ignore it to make tests work for now. Should
fix it in the future.
2016-06-21 10:18:27 +00:00
ozaki-r
f91dfc925e Make a bunch of test names self-descriptive 2016-06-21 05:04:16 +00:00
ozaki-r
8bb2f299cd Return 0 for $DEBUG=false case 2016-04-23 15:47:54 +00:00
ozaki-r
4b837129f9 Add more tests of RTF_REJECT 2016-04-23 08:54:20 +00:00
ozaki-r
0ba9b3455b Add more tests of RTF_REJECT 2016-04-22 06:24:10 +00:00
ozaki-r
e53ad40782 Fix tests for blackhole routes
The gateway of a blackhole route must be a loopback interface.
2016-04-21 09:46:49 +00:00
ozaki-r
2223b893c1 Add tests of route flags using IPv6 addresses 2016-04-21 05:10:15 +00:00
ozaki-r
09973b35ac Separate nexthop caches from the routing table
By this change, nexthop caches (IP-MAC address pair) are not stored
in the routing table anymore. Instead nexthop caches are stored in
each network interface; we already have lltable/llentry data structure
for this purpose. This change also obsoletes the concept of cloning/cloned
routes. Cloned routes no longer exist while cloning routes still exist
with renamed to connected routes.

Noticeable changes are:
- Nexthop caches aren't listed in route show/netstat -r
  - sysctl(NET_RT_DUMP) doesn't return them
  - If RTF_LLDATA is specified, it returns nexthop caches
- Several definitions of routing flags and messages are removed
  - RTF_CLONING, RTF_XRESOLVE, RTF_LLINFO, RTF_CLONED and RTM_RESOLVE
- RTF_CONNECTED is added
  - It has the same value of RTF_CLONING for backward compatibility
- route's -xresolve, -[no]cloned and -llinfo options are removed
  - -[no]cloning remains because it seems there are users
  - -[no]connected is introduced and recommended
    to be used instead of -[no]cloning
- route show/netstat -r drops some flags
  - 'L' and 'c' are not seen anymore
  - 'C' now indicates a connected route
- Gateway value of a route of an interface address is now not
  a L2 address but "link#N" like a connected (cloning) route
- Proxy ARP: "arp -s ... pub" doesn't create a route

You can know details of behavior changes by seeing diffs under tests/.

Proposed on tech-net and tech-kern:
  http://mail-index.netbsd.org/tech-net/2016/03/11/msg005701.html
2016-04-04 07:37:07 +00:00
ozaki-r
84720685bf Make outputs informative on failure 2016-03-28 02:35:43 +00:00
ozaki-r
d0731f8a07 Add tests for "route get" 2016-03-28 01:53:07 +00:00
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
ozaki-r
b420830aee Improve stability of route_flags_xresolve tests
Insert delays to give route monitor a chance to complete its work.
2015-06-01 01:36:30 +00:00
ozaki-r
458add7bf4 Add tests for XRESOLVE flag 2015-05-20 01:30:42 +00:00
ozaki-r
2754f5946a Add tests for route flags 2015-05-18 06:27:04 +00:00
joerg
94bcefa490 Check for RUMP programs before using them. 2013-02-19 21:08:24 +00:00
jmmv
9b4c1721f3 Instead of doing 'atf_check ... sh -c foo', just do 'atf_check ... -x foo'. 2011-05-14 17:42:28 +00:00
kefren
233a38c913 Problem was fixed, don't expect to fail anymore 2011-02-10 07:47:50 +00:00
pooka
5e6b266d97 Time to start adding tests for the routing code to make that part
of the kernel more approachable.

Begin the task with an xfail test for PR kern/40455.
2011-02-08 10:11:28 +00:00