riastradh
61fd7d67f5
[ozaki-r] Add wg files
2020-08-20 21:28:00 +00:00
riastradh
a14187eca5
[ozaki-r] Changes to the kernel core for wireguard
2020-08-20 21:21:31 +00:00
knakahara
57870677c1
Fix missing "-m tranport" options. Pointed out by k-goda@IIJ.
...
Using any mode SA causes unepected call path, that is,
ipsec4_common_input_cb() calls ip_input() directly instead of
ipsecif4_input().
2020-08-05 01:10:50 +00:00
christos
a314e6f743
add a test for v4 mapped addresses
2020-07-06 18:45:25 +00:00
christos
8049036801
don't open the socket twice.
2020-07-06 16:24:06 +00:00
roy
b05648aa26
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).
2020-06-12 11:04:44 +00:00
knakahara
f26b5d9d11
Refactor a little and follow new format of "npfctl list".
...
Fix the below ATF failures.
- net/if_ipsec/t_ipsec_natt:ipsecif_natt_transport_null
- net/if_ipsec/t_ipsec_natt:ipsecif_natt_transport_rijndaelcbc
- net/ipsec/t_ipsec_natt:ipsec_natt_transport_ipv4_null
- net/ipsec/t_ipsec_natt:ipsec_natt_transport_ipv4_rijndaelcbc
ok'ed by ozaki-r@n.o, thanks.
2020-06-05 03:24:58 +00:00
martin
112112a823
Adjust to "npfctl debug" command line changes, from rmind@.
2020-06-01 11:08:57 +00:00
martin
c9e294b294
Typo in error message
2020-06-01 04:38:37 +00:00
joerg
422dd9f190
Replace noatf global with conditional compilation
2020-04-23 00:31:51 +00:00
christos
49c579d18d
more cleanup
2020-04-01 01:51:02 +00:00
christos
0dd6d756c6
factor out common code and set the path.
2020-04-01 01:49:26 +00:00
christos
2e16057d77
Enforce a standard path
2020-04-01 00:49:04 +00:00
christos
3763e8dd1d
Some interfaces (gif) don't have a mac address...
2020-03-30 13:01:39 +00:00
roy
a6837a9b93
tests: ndp_rtm: Check correct source address in RTA_AUTHOR
...
Fixes PR kern/55074.
2020-03-15 21:15:25 +00:00
roy
17da0e5463
tests: check RTA_AUTHOR in messages
2020-03-11 08:52:13 +00:00
nisimura
8cdadb314d
address to ATF t_vlan failure. adapt ifmcstat(8) output format change.
2020-03-08 09:05:33 +00:00
christos
0dc8cda9a3
Centralize the base rump libraries into a variable used by all the other
...
Makefiles so that we can make changes to it centrally as needed and have
less mess. Fixes the sun2 build that needs rumpvfs after librump after
the latest changes.
2020-03-01 18:08:12 +00:00
ozaki-r
79945603f0
tests: abort if MAC address duplication found
2020-02-20 08:02:26 +00:00
ozaki-r
e8f138ca5c
tests: dump stats of an interface before destroying it
2020-02-20 07:58:19 +00:00
ozaki-r
ccef126b54
tests: add missing ifconfig -w
...
This change mitigates PR kern/54897.
2020-02-17 08:46:10 +00:00
yamaguchi
0c3bbc580c
atf: add test cases for MTU that is increased on SIOCSETVLAN
...
From t-kusaba@IIJ, thanks
2019-11-11 02:40:48 +00:00
christos
a33f2da334
- use accept4 instead of paccept for everyone.
...
- add test for accept preserving non-block
- comment on FreeBSD and Linux behavior.
2019-10-26 23:08:27 +00:00
ozaki-r
3cb3151cb2
tests: add tests for the validateion of net.inet6.ip6.temppltime
2019-10-16 07:42:22 +00:00
mrg
4e545ef793
ifr_name is nul terminated. make it so.
2019-10-13 07:46:16 +00:00
roy
801b070c3c
t_arp: Wait for 10 seconds for RTM_MISS
...
Let's try increasing the ping timeout to try and fix PR misc/54525.
2019-09-09 10:29:04 +00:00
roy
07f3df8b72
tests: fix ARP and NDP tests for RTM_* messages
...
While here add tests for RTM_MISS.
2019-09-03 19:07:50 +00:00
ozaki-r
b5415e57cd
tests: add tests for IPv6 link-local addresses with a scope ID
...
Setting an address with a scope ID doesn't work for rump.ifconfig for some
reasons and needs $HIJACKING for now. The bug should be fixed someday.
2019-08-26 07:41:50 +00:00
ozaki-r
c6ad1822be
tests: explain how rump_server_check_memleaks works
2019-08-26 04:50:32 +00:00
ozaki-r
06b680af2f
tests: restore rump_server_check_poolleaks for llentpl
...
It didn't work correctly because rumphijack for vmstat didn't work expectedly;
vmstat has the sgid bit for kvm(3) and that prevents rumphijack from working.
Address the issue by cloning a vmstat binary without the sgid bit temporarily
and using it for rumphijack. Note that it's a workaround. vmstat should stop
using kvm(3) for /dev/kmem and drop the sgid bit eventually.
2019-08-26 04:50:03 +00:00
ozaki-r
571560e45c
Disable rump_server_check_memleaks for now
...
It doesn't work in some cases.
2019-08-20 09:53:45 +00:00
ozaki-r
7c447e107e
tests: check pool object leaks
...
Currently only llentpl leaks can be detected.
2019-08-19 03:22:47 +00:00
ozaki-r
ce0ae1dfed
tests: use rump_server_add_iface to create interfaces
2019-08-19 03:22:05 +00:00
ozaki-r
b271a6e258
tests: enable to create interfaces other than shmif with rump_server_add_iface
...
For this change interfaces are destroyed in the reverse order of their
creations in case there are dependencies between interfaces.
2019-08-19 03:21:13 +00:00
ozaki-r
3a470f73b4
tests: fix test header name
2019-08-19 03:20:27 +00:00
ozaki-r
bce11250f5
tests: check if ifconfig (ioctl) works after a failure of ifconfig destroy
...
This is a test for PR kern/54434.
2019-08-15 04:21:33 +00:00
ozaki-r
caa310059a
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
2019-08-13 07:20:43 +00:00
ozaki-r
ac002ee323
tests: add tests for getspi and udpate
2019-07-23 04:31:25 +00:00
ozaki-r
2f33341a03
tests: extract all kernel logs, not just a panic message, from rump_server.core
2019-07-18 04:22:22 +00:00
ozaki-r
bc1d718ff0
tests: shorten the expire time of neighbor caches to reduce the runtime of the tests
2019-07-18 04:00:09 +00:00
ozaki-r
a96cce565c
tests: check that a new cache is not created over the limit
2019-07-09 02:50:24 +00:00
ozaki-r
24bc91d9f1
Add ATF test for a description.
...
From t-kusaba@IIJ
2019-07-04 02:46:40 +00:00
ozaki-r
2ed6d11366
tests: test state transitions of neighbor caches
2019-06-28 06:46:04 +00:00
skrll
b801bf2f56
Another spello of 'unknown'
2019-06-24 06:26:29 +00:00
gson
dd9a375876
In the "got %d/%d" message printed at the end of the pingsize test,
...
make the latter number show the actual number of ICMP packets the test
attempted to send. Thus, the two numbers can now be meaningfully
compared, and their difference indicates the number of packets lost.
2019-06-11 08:34:01 +00:00
kre
9c62ddd5c1
Deal with fallout from the addition of
...
KERN_PROC_CWD in sysctl(3)
That is kern.proc.$$.KERN_PROC_CWD (I think - not that it matters here)
The effect is that -lrump now requires -lrumpvfs
This set of changes fixes (I believe) regular dynamic builds,
more might be required for static builds (will be verified soon).
2019-06-01 06:59:17 +00:00
gson
db7bf52ef5
Increase the timeout for the manyaddrs test case; the default is often
...
insufficient under qemu.
2019-05-31 15:36:10 +00:00
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
7a4fe7b5fc
tests: make utility funtions easy to use for tests that don't use the framework
2019-04-18 07:56:04 +00:00