Commit Graph

24 Commits

Author SHA1 Message Date
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