History log of /src/tests/net/ndp |
Revision | Date | Author | Comments |
1.4 | 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).
|
1.3 | 24-Nov-2016 |
ozaki-r | Reduce duplicate codes
Introduce net_common.sh that is to share common functions used in tests for networking. This commit commonizes extract_new_packets. Other duplicate codes will be moved to the file in further commits.
|
1.2 | 11-Nov-2015 |
ozaki-r | branches: 1.2.2; Add tests for RA
From s-yamaguchi@IIJ (with some tweaks by me)
|
1.1 | 03-Aug-2015 |
ozaki-r | Add tests for NDP
|
1.2.2.1 | 07-Jan-2017 |
pgoyette | Sync with HEAD. (Note that most of these changes are simply $NetBSD$ tag issues.)
|
1.14 | 07-Mar-2018 |
ozaki-r | Tweak tests; increase the size of NS packets for the addition of a nonce
|
1.13 | 07-Mar-2018 |
ozaki-r | Provide more informative reports on failures
|
1.12 | 25-Nov-2016 |
ozaki-r | branches: 1.12.12; 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.11 | 24-Nov-2016 |
ozaki-r | Move HIJACKING definition to net_common.sh
|
1.10 | 24-Nov-2016 |
ozaki-r | Reduce duplicate codes
Introduce net_common.sh that is to share common functions used in tests for networking. This commit commonizes extract_new_packets. Other duplicate codes will be moved to the file in further commits.
|
1.9 | 07-Nov-2016 |
ozaki-r | Accept DEBUG environment variable
By doing so, we can easily turn DEBUG on/off without modifying the ATF scripts.
|
1.8 | 04-Oct-2016 |
ozaki-r | Add tests for sysctl net.inet6.ip6.dad_count
From suzu-ken@IIJ
|
1.7 | 16-Sep-2016 |
ozaki-r | Ignore case in duplicated
|
1.6 | 16-Sep-2016 |
ozaki-r | Adjust for new ifconfig output
And use -o match to provide informative error messages.
|
1.5 | 10-Aug-2016 |
kre | + -lrumpdev
|
1.4 | 24-Aug-2015 |
ozaki-r | branches: 1.4.2; Disable another tentative state check
It's too ephemeral to check robustly.
|
1.3 | 17-Aug-2015 |
ozaki-r | 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
|
1.2 | 10-Aug-2015 |
ozaki-r | Fix cleanup
|
1.1 | 03-Aug-2015 |
ozaki-r | Add tests for NDP
|
1.4.2.2 | 07-Jan-2017 |
pgoyette | Sync with HEAD. (Note that most of these changes are simply $NetBSD$ tag issues.)
|
1.4.2.1 | 04-Nov-2016 |
pgoyette | Sync with HEAD
|
1.12.12.1 | 15-Mar-2018 |
pgoyette | Synch with HEAD
|
1.40 | 07-Jan-2022 |
ozaki-r | tests: skip ndp_cache_state on qemu
|
1.39 | 17-Sep-2020 |
roy | ndp_rtm: Only ping once
Pointless doing 3 pings. On a slow system, it's possible that many RTM_MISS messages could overflow into the next test.
|
1.38 | 15-Mar-2020 |
roy | tests: ndp_rtm: Check correct source address in RTA_AUTHOR
Fixes PR kern/55074.
|
1.37 | 11-Mar-2020 |
roy | tests: check RTA_AUTHOR in messages
|
1.36 | 03-Sep-2019 |
roy | tests: fix ARP and NDP tests for RTM_* messages
While here add tests for RTM_MISS.
|
1.35 | 19-Aug-2019 |
ozaki-r | tests: fix test header name
|
1.34 | 13-Aug-2019 |
ozaki-r | Make a permanet neighbor cache to avoid sending an NS packet disturbing the test
A receiver of an ICMPv6 request packet creates a stale cache entry and it turns into the delay state on replying the packet. After 5 second, the receiver sends an NS packet as a reachability confirmation, which disturbs the test and causes a unexpected result.
Should fix PR misc/54451
|
1.33 | 18-Jul-2019 |
ozaki-r | branches: 1.33.2; tests: shorten the expire time of neighbor caches to reduce the runtime of the tests
|
1.32 | 28-Jun-2019 |
ozaki-r | tests: test state transitions of neighbor caches
|
1.31 | 22-Mar-2018 |
ozaki-r | branches: 1.31.2; Avoid setting IP addresses of the same subnet on different interface
If we do so, there will remain one route that is of a preceding address, but that behavior is not documented and may be changed in the future. Tests shouldn't rely on such a unstable behavior.
|
1.30 | 24-Nov-2017 |
kre | branches: 1.30.2;
Fix the ndp_rtm test the same way the arp_rtm test was fixed: 1. get pid of bg process with $! not $? 2. expect a single message from route monitor, not two, after ndp -d 3. run atf_check just once to verify correct output, not once for each string
|
1.29 | 28-Jun-2017 |
ozaki-r | Enable to remove multiple ARP/NDP entries for one destination
The kernel can have multiple ARP/NDP entries which have an indentical destination on different interfaces. This is normal and can be reproduce easily by ping -I or ping6 -S. We should be able to remove such entries.
arp -d <ip> and ndp -d <ip> are changed to fetch all ARP/NDP entries and remove matched entries. So we can remove multiple entries described above. This fetch all and selective removal behavior is the same as arp <ip> and ndp <ip>; they also do fetch all entries and show only matched entries.
Related to PR 51179
|
1.28 | 28-Jun-2017 |
ozaki-r | Restore ARP/NDP entries to route show and netstat -r
Requested by dyoung@ some time ago
|
1.27 | 26-Jun-2017 |
ozaki-r | Drop RTF_UP from a routing message of a deleted ARP/NDP entry
|
1.26 | 26-Jun-2017 |
ozaki-r | Improve backward compatibility of (fake) routing messages on adding an ARP/NDP entry
A message originally included only DST and GATEWAY. Restore it.
|
1.25 | 26-Jun-2017 |
ozaki-r | Fix usage of routing messages on arp -d and ndp -d
It didn't work as we expected; we should set RTA_GATEWAY not RTA_IFP on RTM_GET to return an if_index and the kernel should use it on RTM_DELETE.
|
1.24 | 22-Jun-2017 |
ozaki-r | Test implicit removals of ARP/NDP entries
One test case reproudces PR 51179.
|
1.23 | 22-Jun-2017 |
ozaki-r | Fix typo
|
1.22 | 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).
|
1.21 | 19-Jun-2017 |
ozaki-r | Add missing declarations for cleanup
|
1.20 | 16-Jun-2017 |
ozaki-r | Test routing messages emitted on operations of ARP/NDP entries
|
1.19 | 26-May-2017 |
ozaki-r | branches: 1.19.2; Change the default value of DEBUG of stable tests to false
|
1.18 | 03-Mar-2017 |
ozaki-r | Provide a more robust regexp for time formats of 1day-ish
|
1.17 | 25-Nov-2016 |
ozaki-r | branches: 1.17.2; 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.16 | 24-Nov-2016 |
ozaki-r | Move HIJACKING definition to net_common.sh
|
1.15 | 24-Nov-2016 |
ozaki-r | Reduce duplicate codes
Introduce net_common.sh that is to share common functions used in tests for networking. This commit commonizes extract_new_packets. Other duplicate codes will be moved to the file in further commits.
|
1.14 | 07-Nov-2016 |
ozaki-r | Accept DEBUG environment variable
By doing so, we can easily turn DEBUG on/off without modifying the ATF scripts.
|
1.13 | 10-Aug-2016 |
kre | + -lrumpdev
|
1.12 | 21-Jun-2016 |
ozaki-r | branches: 1.12.2; Make a bunch of test names self-descriptive
|
1.11 | 20-May-2016 |
ozaki-r | Adjust the tests for temp option that works now
See PR kern/50127
|
1.10 | 04-Apr-2016 |
ozaki-r | 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
|
1.9 | 29-Feb-2016 |
ozaki-r | Add tests on activating a new MAC address
|
1.8 | 18-Nov-2015 |
ozaki-r | Don't assign unused IP address
It sometimes creates an unexpected NDP cache.
|
1.7 | 17-Nov-2015 |
ozaki-r | Add tests for GC of neighbor caches
|
1.6 | 18-Aug-2015 |
ozaki-r | Make a test a bit easy
Accept just 24h of expiration time in addition to 24h - a few seconds.
|
1.5 | 17-Aug-2015 |
ozaki-r | 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.
|
1.4 | 10-Aug-2015 |
ozaki-r | Fix head and cleanup definitions for cache_expiration tests
|
1.3 | 07-Aug-2015 |
ozaki-r | Use rump.ping6 instead of ping6 with rumphijack(3)
|
1.2 | 04-Aug-2015 |
ozaki-r | Check the output of ndp -d strictly
|
1.1 | 03-Aug-2015 |
ozaki-r | Add tests for NDP
|
1.12.2.2 | 20-Mar-2017 |
pgoyette | Sync with HEAD
|
1.12.2.1 | 07-Jan-2017 |
pgoyette | Sync with HEAD. (Note that most of these changes are simply $NetBSD$ tag issues.)
|
1.17.2.1 | 21-Apr-2017 |
bouyer | Sync with HEAD
|
1.19.2.3 | 08-Jul-2019 |
martin | Pull up following revision(s) (requested by ozaki-r in ticket #1285):
sys/netinet6/nd6.c: revision 1.255 tests/net/ndp/t_ndp.sh: revision 1.32
nd6: restore a missing reachability confirmation
On sending a packet over a STALE cache, the cache should be tried a reachability confirmation, which is described in RFC 2461/4861 7.3.3. On the fast path in nd6_resolve, however, the treatment for STALE caches has been skipped accidentally. So STALE caches never be back to the REACHABLE state.
To fix the issue, branch to the fast path only when the cache entry is the REACHABLE state and leave other caches to the slow path that includes the treatment. To this end we need to allow to return a link-layer address if a valid address is available on the slow path too, which is the same behavior as FreeBSD and OpenBSD.
tests: test state transitions of neighbor caches
|
1.19.2.2 | 02-Apr-2018 |
martin | Pull up following revision(s) (requested by ozaki-r in ticket #688):
tests/net/ndp/t_ndp.sh: revision 1.31 tests/net/if_tap/t_tap.sh: revision 1.8
Avoid setting IP addresses of the same subnet on different interface
If we do so, there will remain one route that is of a preceding address, but that behavior is not documented and may be changed in the future. Tests shouldn't rely on such a unstable behavior.
|
1.19.2.1 | 07-Jul-2017 |
martin | Pull up following revision(s) (requested by ozaki-r in ticket #107): usr.sbin/arp/arp.c: revision 1.56 sys/net/rtsock.c: revision 1.218 sys/net/if_llatbl.c: revision 1.20 usr.sbin/arp/arp.c: revision 1.57 sys/net/rtsock.c: revision 1.219 sys/net/if_llatbl.c: revision 1.21 usr.sbin/arp/arp.c: revision 1.58 tests/net/net_common.sh: revision 1.19 sys/netinet6/nd6.h: revision 1.84 sys/netinet6/nd6.h: revision 1.85 tests/net/arp/t_arp.sh: revision 1.23 sys/netinet6/in6.c: revision 1.246 tests/net/arp/t_arp.sh: revision 1.24 sys/netinet6/in6.c: revision 1.247 tests/net/arp/t_arp.sh: revision 1.25 sys/netinet6/in6.c: revision 1.248 tests/net/arp/t_arp.sh: revision 1.26 usr.sbin/ndp/ndp.c: revision 1.49 tests/net/arp/t_arp.sh: revision 1.27 tests/net/ndp/t_ndp.sh: revision 1.20 tests/net/arp/t_arp.sh: revision 1.28 tests/net/ndp/t_ndp.sh: revision 1.21 tests/net/arp/t_arp.sh: revision 1.29 tests/net/ndp/t_ndp.sh: revision 1.22 tests/net/ndp/t_ndp.sh: revision 1.23 tests/net/route/t_flags6.sh: revision 1.13 tests/net/ndp/t_ndp.sh: revision 1.24 tests/net/route/t_flags6.sh: revision 1.14 tests/net/ndp/t_ndp.sh: revision 1.25 tests/net/route/t_flags6.sh: revision 1.15 tests/net/ndp/t_ndp.sh: revision 1.26 sbin/route/rtutil.c: revision 1.9 tests/net/ndp/t_ndp.sh: revision 1.27 tests/net/ndp/t_ndp.sh: revision 1.28 tests/net/net/t_ipv6address.sh: revision 1.14 tests/net/ndp/t_ra.sh: revision 1.28 tests/net/ndp/t_ndp.sh: revision 1.29 sys/net/route.h: revision 1.113 tests/net/ndp/t_ra.sh: revision 1.29 sys/net/rtsock.c: revision 1.220 sys/net/rtsock.c: revision 1.221 sys/net/rtsock.c: revision 1.222 sys/net/rtsock.c: revision 1.223 tests/net/route/t_route.sh: revision 1.13 sys/net/rtsock.c: revision 1.224 sys/net/route.c: revision 1.196 sys/net/if_llatbl.c: revision 1.19 sys/net/route.c: revision 1.197 sbin/route/route.c: revision 1.156 tests/net/route/t_flags.sh: revision 1.16 tests/net/route/t_flags.sh: revision 1.17 usr.sbin/ndp/ndp.c: revision 1.50 tests/net/route/t_flags.sh: revision 1.18 sys/netinet/in.c: revision 1.204 tests/net/route/t_flags.sh: revision 1.19 sys/netinet/in.c: revision 1.205 tests/net/arp/t_arp.sh: revision 1.30 tests/net/arp/t_arp.sh: revision 1.31 sys/net/if_llatbl.h: revision 1.11 tests/net/arp/t_arp.sh: revision 1.32 sys/net/if_llatbl.h: revision 1.12 tests/net/arp/t_arp.sh: revision 1.33 sys/netinet6/nd6.c: revision 1.233 sys/netinet6/nd6.c: revision 1.234 sys/netinet/if_arp.c: revision 1.251 sys/netinet6/nd6.c: revision 1.235 sys/netinet/if_arp.c: revision 1.252 sbin/route/route.8: revision 1.57 sys/net/rtsock.c: revision 1.214 sys/net/rtsock.c: revision 1.215 sys/net/rtsock.c: revision 1.216 sys/net/rtsock.c: revision 1.217 whitespace police Simplify We can assume that rt_ifp is always non-NULL. Sending a routing message (RTM_ADD) on adding an llentry A message used to be sent on adding a cloned route. Restore the behavior for backward compatibility. Requested by ryo@ Drop RTF_CONNECTED from a result of RTM_GET for ARP/NDP entries ARP/NDP entries aren't connected routes. Reported by ryo@ Support -c <count> option for route monitor route command exits if it receives <count> routing messages where <count> is a value specified by -c. The option is useful to get only particular message(s) in a test script. Test routing messages emitted on operations of ARP/NDP entries Do netstat -a for an appropriate protocol Add missing declarations for cleanup Set net.inet.arp.keep only if it's required 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). Fix typo Fix in_lltable_match_prefix The function has not been used but will be used soon. Remove unused function (nd6_rem_ifa_lle) Allow in6_lltable_free_entry to be called without holding the afdata lock of ifp as well as in_lltable_free_entry This behavior is a bit odd and should be fixed in the future... Purge ARP/NDP entries on an interface when the interface is down Fix PR kern/51179 Purge all related L2 caches on removing a route The change addresses situations similar to PR 51179. Purge L2 caches on changing an interface of a route The change addresses situations similar to PR 51179. Test implicit removals of ARP/NDP entries One test case reproudces PR 51179. Fix build of kernels without both INET and INET6 Tweak lltable_sysctl_dumparp - Rename lltable_sysctl_dumparp to lltable_sysctl_dump because it's not only for ARP - Enable it not only for INET but also for INET6 Fix usage of routing messages on arp -d and ndp -d It didn't work as we expected; we should set RTA_GATEWAY not RTA_IFP on RTM_GET to return an if_index and the kernel should use it on RTM_DELETE. Improve backward compatibility of (fake) routing messages on adding an ARP/NDP entry A message originally included only DST and GATEWAY. Restore it. Fix ifdef; care about a case w/ INET6 and w/o INET Drop RTF_UP from a routing message of a deleted ARP/NDP entry Check existence of ARP/NDP entries Checking ARP/NDP entries is valid rather than checking routes. Fix wrong comment 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. Restore ARP/NDP entries to route show and netstat -r Requested by dyoung@ some time ago Enable to remove multiple ARP/NDP entries for one destination The kernel can have multiple ARP/NDP entries which have an indentical destination on different interfaces. This is normal and can be reproduce easily by ping -I or ping6 -S. We should be able to remove such entries. arp -d <ip> and ndp -d <ip> are changed to fetch all ARP/NDP entries and remove matched entries. So we can remove multiple entries described above. This fetch all and selective removal behavior is the same as arp <ip> and ndp <ip>; they also do fetch all entries and show only matched entries. Related to PR 51179 Check if ARP/NDP entries are purged when a related route is deleted
|
1.30.2.1 | 30-Mar-2018 |
pgoyette | Resolve conflicts between branch and HEAD
|
1.31.2.1 | 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
1.33.2.2 | 05-Sep-2019 |
martin | Pull up following revision(s) (requested by roy in ticket #175):
tests/net/arp/t_arp.sh: revision 1.39 tests/net/ndp/t_ndp.sh: revision 1.36
tests: fix ARP and NDP tests for RTM_* messages
While here add tests for RTM_MISS.
|
1.33.2.1 | 26-Aug-2019 |
martin | Pull up following revision(s) (requested by ozaki-r in ticket #117):
tests/net/ndp/t_ndp.sh: revision 1.34
Make a permanet neighbor cache to avoid sending an NS packet disturbing the test
A receiver of an ICMPv6 request packet creates a stale cache entry and it turns into the delay state on replying the packet. After 5 second, the receiver sends an NS packet as a reachability confirmation, which disturbs the test and causes a unexpected result.
Should fix PR misc/54451
|
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).
|
1.33 | 16-Oct-2019 |
ozaki-r | tests: add tests for the validateion of net.inet6.ip6.temppltime
|
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.
|
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).
|
1.27 | 26-May-2017 |
ozaki-r | branches: 1.27.2; Change the default value of DEBUG of stable tests to false
|
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
|
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
|
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.
|
1.4 | 20-Oct-2016 |
ozaki-r | Make test names self-descriptive
|
1.3 | 10-Aug-2016 |
kre | + -lrumpdev
|
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)
|
1.2.2.3 | 20-Mar-2017 |
pgoyette | Sync with HEAD
|
1.2.2.2 | 07-Jan-2017 |
pgoyette | Sync with HEAD. (Note that most of these changes are simply $NetBSD$ tag issues.)
|
1.2.2.1 | 04-Nov-2016 |
pgoyette | Sync with HEAD
|
1.24.2.1 | 21-Apr-2017 |
bouyer | Sync with HEAD
|
1.27.2.2 | 21-Nov-2017 |
martin | Pull up following revision(s) (requested by ozaki-r in ticket #358): usr.sbin/rtadvd/rtadvd.c: revision 1.54-1.58 usr.sbin/rtadvd/config.c: revision 1.37 usr.sbin/rtadvd/if.c: revision 1.25 usr.sbin/rtadvd/dump.c: revision 1.15 usr.sbin/rtadvd/rrenum.c: revision 1.20 usr.sbin/rtadvd/logit.h: revision 1.1 usr.sbin/rtadvd/rtadvd.8: revision 1.26 tests/net/ndp/t_ra.sh: revision 1.30 usr.sbin/rtadvd/timer.c: revision 1.14 tests/net/ndp/t_ra.sh: revision 1.31 usr.sbin/rtadvd/advcap.c: revision 1.17
KNF, fix time printing formats.
Don't start another copy of rtadvd if one is running.
PR/52618: Shinichi Doyashiki: Don't exit if adding interface to multicast group fails. This happens with empty vlan interfaces - make syscalls checks against -1 - fix errors to print %s: instead of <%s> XXX: if_vlan is the only pseudo interface in net/ that returns such an error..
Kill rtadvd surely even if the tests fail in the middle It may help PR bin/52701.
Change the meaning of the D flag to print errors to stderr instead of syslog(3) and exit if poll(2) fails (intended to be used with unit-tests).
Mark expandm as preserving format strings.
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.27.2.1 | 07-Jul-2017 |
martin | Pull up following revision(s) (requested by ozaki-r in ticket #107): usr.sbin/arp/arp.c: revision 1.56 sys/net/rtsock.c: revision 1.218 sys/net/if_llatbl.c: revision 1.20 usr.sbin/arp/arp.c: revision 1.57 sys/net/rtsock.c: revision 1.219 sys/net/if_llatbl.c: revision 1.21 usr.sbin/arp/arp.c: revision 1.58 tests/net/net_common.sh: revision 1.19 sys/netinet6/nd6.h: revision 1.84 sys/netinet6/nd6.h: revision 1.85 tests/net/arp/t_arp.sh: revision 1.23 sys/netinet6/in6.c: revision 1.246 tests/net/arp/t_arp.sh: revision 1.24 sys/netinet6/in6.c: revision 1.247 tests/net/arp/t_arp.sh: revision 1.25 sys/netinet6/in6.c: revision 1.248 tests/net/arp/t_arp.sh: revision 1.26 usr.sbin/ndp/ndp.c: revision 1.49 tests/net/arp/t_arp.sh: revision 1.27 tests/net/ndp/t_ndp.sh: revision 1.20 tests/net/arp/t_arp.sh: revision 1.28 tests/net/ndp/t_ndp.sh: revision 1.21 tests/net/arp/t_arp.sh: revision 1.29 tests/net/ndp/t_ndp.sh: revision 1.22 tests/net/ndp/t_ndp.sh: revision 1.23 tests/net/route/t_flags6.sh: revision 1.13 tests/net/ndp/t_ndp.sh: revision 1.24 tests/net/route/t_flags6.sh: revision 1.14 tests/net/ndp/t_ndp.sh: revision 1.25 tests/net/route/t_flags6.sh: revision 1.15 tests/net/ndp/t_ndp.sh: revision 1.26 sbin/route/rtutil.c: revision 1.9 tests/net/ndp/t_ndp.sh: revision 1.27 tests/net/ndp/t_ndp.sh: revision 1.28 tests/net/net/t_ipv6address.sh: revision 1.14 tests/net/ndp/t_ra.sh: revision 1.28 tests/net/ndp/t_ndp.sh: revision 1.29 sys/net/route.h: revision 1.113 tests/net/ndp/t_ra.sh: revision 1.29 sys/net/rtsock.c: revision 1.220 sys/net/rtsock.c: revision 1.221 sys/net/rtsock.c: revision 1.222 sys/net/rtsock.c: revision 1.223 tests/net/route/t_route.sh: revision 1.13 sys/net/rtsock.c: revision 1.224 sys/net/route.c: revision 1.196 sys/net/if_llatbl.c: revision 1.19 sys/net/route.c: revision 1.197 sbin/route/route.c: revision 1.156 tests/net/route/t_flags.sh: revision 1.16 tests/net/route/t_flags.sh: revision 1.17 usr.sbin/ndp/ndp.c: revision 1.50 tests/net/route/t_flags.sh: revision 1.18 sys/netinet/in.c: revision 1.204 tests/net/route/t_flags.sh: revision 1.19 sys/netinet/in.c: revision 1.205 tests/net/arp/t_arp.sh: revision 1.30 tests/net/arp/t_arp.sh: revision 1.31 sys/net/if_llatbl.h: revision 1.11 tests/net/arp/t_arp.sh: revision 1.32 sys/net/if_llatbl.h: revision 1.12 tests/net/arp/t_arp.sh: revision 1.33 sys/netinet6/nd6.c: revision 1.233 sys/netinet6/nd6.c: revision 1.234 sys/netinet/if_arp.c: revision 1.251 sys/netinet6/nd6.c: revision 1.235 sys/netinet/if_arp.c: revision 1.252 sbin/route/route.8: revision 1.57 sys/net/rtsock.c: revision 1.214 sys/net/rtsock.c: revision 1.215 sys/net/rtsock.c: revision 1.216 sys/net/rtsock.c: revision 1.217 whitespace police Simplify We can assume that rt_ifp is always non-NULL. Sending a routing message (RTM_ADD) on adding an llentry A message used to be sent on adding a cloned route. Restore the behavior for backward compatibility. Requested by ryo@ Drop RTF_CONNECTED from a result of RTM_GET for ARP/NDP entries ARP/NDP entries aren't connected routes. Reported by ryo@ Support -c <count> option for route monitor route command exits if it receives <count> routing messages where <count> is a value specified by -c. The option is useful to get only particular message(s) in a test script. Test routing messages emitted on operations of ARP/NDP entries Do netstat -a for an appropriate protocol Add missing declarations for cleanup Set net.inet.arp.keep only if it's required 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). Fix typo Fix in_lltable_match_prefix The function has not been used but will be used soon. Remove unused function (nd6_rem_ifa_lle) Allow in6_lltable_free_entry to be called without holding the afdata lock of ifp as well as in_lltable_free_entry This behavior is a bit odd and should be fixed in the future... Purge ARP/NDP entries on an interface when the interface is down Fix PR kern/51179 Purge all related L2 caches on removing a route The change addresses situations similar to PR 51179. Purge L2 caches on changing an interface of a route The change addresses situations similar to PR 51179. Test implicit removals of ARP/NDP entries One test case reproudces PR 51179. Fix build of kernels without both INET and INET6 Tweak lltable_sysctl_dumparp - Rename lltable_sysctl_dumparp to lltable_sysctl_dump because it's not only for ARP - Enable it not only for INET but also for INET6 Fix usage of routing messages on arp -d and ndp -d It didn't work as we expected; we should set RTA_GATEWAY not RTA_IFP on RTM_GET to return an if_index and the kernel should use it on RTM_DELETE. Improve backward compatibility of (fake) routing messages on adding an ARP/NDP entry A message originally included only DST and GATEWAY. Restore it. Fix ifdef; care about a case w/ INET6 and w/o INET Drop RTF_UP from a routing message of a deleted ARP/NDP entry Check existence of ARP/NDP entries Checking ARP/NDP entries is valid rather than checking routes. Fix wrong comment 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. Restore ARP/NDP entries to route show and netstat -r Requested by dyoung@ some time ago Enable to remove multiple ARP/NDP entries for one destination The kernel can have multiple ARP/NDP entries which have an indentical destination on different interfaces. This is normal and can be reproduce easily by ping -I or ping6 -S. We should be able to remove such entries. arp -d <ip> and ndp -d <ip> are changed to fetch all ARP/NDP entries and remove matched entries. So we can remove multiple entries described above. This fetch all and selective removal behavior is the same as arp <ip> and ndp <ip>; they also do fetch all entries and show only matched entries. Related to PR 51179 Check if ARP/NDP entries are purged when a related route is deleted
|
1.32.6.1 | 23-Oct-2019 |
martin | Pull up following revision(s) (requested by ozaki-r in ticket #368):
sys/netinet6/in6_ifattach.h: revision 1.14 sys/netinet6/ip6_input.c: revision 1.212 sys/netinet6/ip6_input.c: revision 1.213 sys/netinet6/ip6_input.c: revision 1.214 sys/netinet6/in6_var.h: revision 1.101 sys/netinet6/in6_var.h: revision 1.102 sys/netinet6/in6_ifattach.c: revision 1.116 sys/netinet6/in6_ifattach.c: revision 1.117 tests/net/ndp/t_ra.sh: revision 1.33
Reorganize in6_tmpaddrtimer stuffs - Move the related functions to where in6_tmpaddrtimer_ch exists - Hide global variable in6_tmpaddrtimer_ch - Rename ip6_init2 to in6_tmpaddrtimer_init - Reduce callers of callout_reset - Use callout_schedule
Validate ip6_temp_preferred_lifetime (net.inet6.ip6.temppltime) on a change ip6_temp_preferred_lifetime is used to calculate an interval period to regenerate temporary addresse by TEMP_PREFERRED_LIFETIME - REGEN_ADVANCE - DESYNC_FACTOR as per RFC 3041 3.5. So it must be greater than (REGEN_ADVANCE + DESYNC_FACTOR), otherwise it will be negative and go wrong, for example KASSERT(to_ticks >= 0) in callout_schedule_locked fails.
tests: add tests for the validateion of net.inet6.ip6.temppltime
in6: reset the temporary address timer on a change of the interval period
|
1.32.4.1 | 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|