yamaguchi
37f4aefcd5
Use a state of IPCP and IPv6CP to wait for connection established
2020-11-25 10:35:07 +00:00
martin
5e2aeb226f
Fix typo
2020-11-05 20:03:56 +00:00
roy
12f661253d
wg: Fix tests by sprinkling ifconfig -w 10
...
So protocols have time to finish setup.
2020-10-16 16:17:23 +00:00
rin
8674cb4654
Link librumpclient explicitly. Fix sun2, i.e., MKPIC=no build.
2020-10-01 13:49:18 +00:00
roy
d1817bc062
Be like other tests and speciy the binary name we install
2020-09-30 17:14:11 +00:00
roy
04b4419fc0
Fix prior
2020-09-30 17:05:59 +00:00
roy
856440c094
tap(4): update the test so that we can open the tap to ping across a bridge
...
ping with tap closed to ensure it fails
ping with tap open to ensure it works
2020-09-30 14:43:15 +00:00
roy
428927374e
vether(4): Add ATF tests based on the tap(4) tests.
2020-09-29 19:41:48 +00:00
yamaguchi
643fff90fa
update test cases for AC-Name and Service-Name
2020-09-25 06:15:30 +00:00
yamaguchi
52817f12eb
Add test cases for AC-Name and Service-Name
2020-09-25 06:07:31 +00:00
yamaguchi
3b0bfceb86
Add a limit for auth at a test for invalid account
2020-09-23 06:18:20 +00:00
yamaguchi
55cf8635ae
Fix typo
2020-09-23 05:56:55 +00:00
roy
65e7bf86f8
arp tests: Delete ARP entry after failed ping test
...
As it might hang around in WAITDELETE for a few seconds.
2020-09-18 16:33:49 +00:00
roy
fc25529d69
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.
2020-09-17 11:56:35 +00:00
roy
6a4c2721f4
arp_rtm: Only ping once
...
Pointless doing 10 pings.
On a slow system, it's possible that many RTM_MISS messages could
overflow into the next test.
2020-09-17 11:51:01 +00:00
roy
7a353eb78e
Don't check lifetime when testing published
2020-09-15 11:19:10 +00:00
roy
caed3cda55
arp test: Use the ndp cache expiration test in place of the old one
...
As the logic is the same.
While here, GC some variables and comment out a redundant sleep.
2020-09-13 14:36:32 +00:00
christos
ecd0250189
Add tests for IP_BINDANY, IPV6_BINDANY
2020-09-08 14:13:50 +00:00
riastradh
4131d8f567
tests/net/if_wg: Allow one second of leeway for rekey.
2020-08-31 20:32:58 +00:00
martin
fb1355a7bc
Skip timeout tests, pointing to PR 55632.
2020-08-31 14:03:56 +00:00
tih
e76a1fdd82
Update the if_wg tests for the human readable 'latest-handshake'
...
output of wgconfig.
2020-08-29 07:22:49 +00:00
riastradh
4a9d230258
Nix trailing whitespace.
2020-08-28 14:18:29 +00:00
christos
fb880abaf0
When running the tests with atf-run the directory we are running in is
...
drwx------ so when we change to a different user, we can't find the socket
we created.
Make a directory and put the socket in there. Of course now atf can't
record its results as a different user, but that is not fatal.
tc-se:FATAL ERROR: Cannot create results file '/tmp/atf-run.9vOjFd/tcr': \
Permission denied
2020-08-28 13:56:29 +00:00
christos
33a3e8378d
Remove unneeded sete{u,g}id pointed out by kre.
...
Remove dup unlink.
2020-08-28 11:46:05 +00:00
christos
52d4f80613
- when running as root, create the socket under a different uid/gid to verify
...
that it works properly with different users opening the socket.
- verify that linux works the same for both getpeereid() and fstat()
2020-08-27 14:00:01 +00:00
riastradh
03c60d1bc0
wg: Check mbuf chain length before m_copydata.
2020-08-27 02:52:33 +00:00
riastradh
5ec0ae9a4b
Use wgconfig as intended to show diagnostics, not a usage message.
2020-08-27 02:51:49 +00:00
christos
ac4837d560
Check that fstat returns the correct socket owner
2020-08-26 22:52:58 +00:00
riastradh
25154f5f0c
Clarify wg(4)'s relation to WireGuard, pending further discussion.
...
Still planning to replace wgconfig(8) and wg-keygen(8) by one wg(8)
tool compatible with wireguard-tools; update wg(4) for the minor
changes from the 2018-06-30 spec to the 2020-06-01 spec; &c. This just
clarifies the current state of affairs as it exists in the development
tree for now.
Mark the man page EXPERIMENTAL for extra clarity.
2020-08-26 16:03:40 +00:00
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