History log of /src/tests/net/ndp/t_ra.sh
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base netbsd-10-1-RELEASE perseant-exfatfs-base-20240630 perseant-exfatfs-base netbsd-10-0-RELEASE netbsd-10-0-RC6 netbsd-10-0-RC5 netbsd-10-0-RC4 netbsd-10-0-RC3 netbsd-10-0-RC2 netbsd-10-0-RC1 netbsd-10-base cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
# 1.34 12-Jun-2020 roy

Remove in-kernel handling of Router Advertisements

This is much better handled by a user-land tool.
Proposed on tech-net here:
https://mail-index.netbsd.org/tech-net/2020/04/22/msg007766.html

Note that the ioctl SIOCGIFINFO_IN6 no longer sets flags. That now
needs to be done using the pre-existing SIOCSIFINFO_FLAGS ioctl.

Compat is fully provided where it makes sense, but trying to turn on
RA handling will obviously throw an error as it no longer exists.

Note that if you use IPv6 temporary addresses, this now needs to be
turned on in dhcpcd.conf(5) rather than in sysctl.conf(5).


Revision tags: phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 phil-wifi-20191119
# 1.33 16-Oct-2019 ozaki-r

tests: add tests for the validateion of net.inet6.ip6.temppltime


Revision tags: netbsd-9-base phil-wifi-20190609 pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.32 25-Nov-2017 kre

branches: 1.32.4; 1.32.6;
Make this test somewhat deterministic - far fewer races, and most
of what are left are "race for the bus" type - if we lose, we just
wait for the next one ... slower but still reliable.

There are two exceptions ... when starting more than one rtadvd
(on different routers) we expect to receive an RA from each, but
all that we can check is that we received the (at least) right number
of RAs. It is possible (though unlikely) that one router sent two
before another sent any, in which case we will not have the data we
expect, and a sub-test will fail.

Second, there is no way to know for sure that we have waited long
enough when we're waiting for data to expire - in systems with
correctly working clocks that actually measure time, this should not
be an issue, if data is due to expire in < 5 seconds, and we wait
5 seconds, and the data is still there, then that indicates a
failure, which should be detected. Unfortunately with QEMU testing
time just isn't that reliable. But fortunately, it is generally the
sleep which takes longer, while other timers run correctly, which is
the way that makes us happy...

While here lots of cleanups - everything from white space and
line wrapping, to removing superfluous quotes and adding some
(but probably not enough) that are not (though given the data is
all known here, lack of quotes will rarely hurt.)

Also take note of the fact that current rtadvd *cannot* delete its
pidfile, so waiting for that file to be removed is doomed to failure.
Do things in a way that works, rather than simply resorting to assassination.

Because we do a lot less "sleep and hope it is long enough" and more
"wait until it is observed to happen" the tests generally run in less
elapsed time than before (20% less has been observed.) But because we
"wait until it is observed to happen" rather than just "sleep and hope
it is long enough" sometimes things take longer (and when that happens,
we no longer fail). Up to 7% slower (overall) has been observed.
(Observations on an amd64 DomU, no idea yet as to what QEMU might observe.)


# 1.31 07-Nov-2017 ozaki-r

Let rtadvd not use syslog for logging

Thanks to christos@ now rtadvd can log via stderr instead of syslog
by -D option.

Address PR bin/52701


# 1.30 06-Nov-2017 ozaki-r

Kill rtadvd surely even if the tests fail in the middle

It may help PR bin/52701.


Revision tags: perseant-stdc-iso10646-base
# 1.29 22-Jun-2017 ozaki-r

Purge all related L2 caches on removing a route

The change addresses situations similar to PR 51179.


# 1.28 21-Jun-2017 ozaki-r

Don't create a permanent L2 cache entry on adding an address to an interface

It was created to copy FreeBSD, however actually the cache isn't
necessary. Remove it to simplify the code and reduce the cost to
maintain it (e.g., keep a consistency with a corresponding local
route).


Revision tags: netbsd-8-base
# 1.27 26-May-2017 ozaki-r

branches: 1.27.2;
Change the default value of DEBUG of stable tests to false


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.26 03-Mar-2017 ozaki-r

Provide a more robust regexp for time formats of 1day-ish


# 1.25 22-Feb-2017 ozaki-r

Add tests for expiration of default router and prefix entries


Revision tags: bouyer-socketcan-base
# 1.24 13-Jan-2017 ozaki-r

branches: 1.24.2;
Remove a check added wrongly


# 1.23 13-Jan-2017 ozaki-r

Add tests for net.inet6.ip6.prefer_tempaddr


# 1.22 13-Jan-2017 ozaki-r

Remove extra checks and cleanup


# 1.21 11-Jan-2017 ozaki-r

Cope with tentative state


# 1.20 11-Jan-2017 ozaki-r

Add a test case for IPv6 temporary address


# 1.19 11-Jan-2017 ozaki-r

Check autoconf flag


Revision tags: pgoyette-localcount-20170107
# 1.18 26-Dec-2016 ozaki-r

Fix typo


# 1.17 21-Dec-2016 ozaki-r

Restore multiple_routers_single_prefix_cleanup removed wrongly


# 1.16 20-Dec-2016 ozaki-r

Reduce unnecessary wait


# 1.15 19-Dec-2016 ozaki-r

Add a test case for exceeding the number of maximum prefixes

The test case pinpoints purge_detached.


# 1.14 19-Dec-2016 ozaki-r

Add tests for multiple routers with a single prefix


# 1.13 19-Dec-2016 ozaki-r

Fix the description of a test


# 1.12 16-Dec-2016 ozaki-r

Add tests for multiple routers


# 1.11 16-Dec-2016 ozaki-r

Unify common routines


# 1.10 16-Dec-2016 ozaki-r

Avoid using /var/run/rump.rtadvd.pid


# 1.9 16-Dec-2016 ozaki-r

Add a test case that deletes auto-configured addresses


# 1.8 16-Dec-2016 ozaki-r

Improve stability of the tests

- Do ifconfig -w 10 after ifconfig up
- Accept /1d0h0m..s/ in addition to /23h59m..s/ for expiration time
- Prevent new RA messages from coming after flushing entries

The changes should fix flapping of test results on babylon5.


# 1.7 14-Dec-2016 ozaki-r

Add tests for flushing prefix and default router entries


# 1.6 25-Nov-2016 ozaki-r

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.


# 1.5 07-Nov-2016 ozaki-r

Accept DEBUG environment variable

By doing so, we can easily turn DEBUG on/off without modifying
the ATF scripts.


Revision tags: pgoyette-localcount-20161104
# 1.4 20-Oct-2016 ozaki-r

Make test names self-descriptive


Revision tags: localcount-20160914
# 1.3 10-Aug-2016 kre

+ -lrumpdev


Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.2 12-Nov-2015 ozaki-r

branches: 1.2.2;
Fix up the header

Remove unnecessary shebang and add missing keyword expansion,
copyright and license.


# 1.1 11-Nov-2015 ozaki-r

Add tests for RA

From s-yamaguchi@IIJ (with some tweaks by me)