knakahara
6e581475e6
Add ATF for ipsecif(4) pfil.
2019-01-17 02:49:11 +00:00
knakahara
06a59f7e0a
Fix PR kern/53848. Add missing "ifconfig -w".
2019-01-15 05:34:37 +00:00
knakahara
2127b06f61
revert t_ipsec.sh:r1.7
2019-01-15 05:33:42 +00:00
knakahara
b6794f2f31
workaround for PR kern/53848
2019-01-11 08:05:52 +00:00
knakahara
3a6c5e3f5d
tests/net/if_ipsec/t_ipsec disable dad. This may fix PR kern/53848
2019-01-10 00:45:08 +00:00
knakahara
5eb3109a16
Add ATF for ipsecif(4) which connect to two peers in the same NAPT.
2018-12-26 08:59:41 +00:00
knakahara
99baf67288
Add ATF for NAT-T enabled ipsecif(4).
2018-12-25 03:54:44 +00:00
knakahara
c037dbb205
reduce debug messages when $DEBUG is not true.
2018-12-25 03:28:29 +00:00
ozaki-r
24e4ff1961
tests: add missing $af
2018-12-11 03:47:51 +00:00
ozaki-r
60afc5cb5b
tests: check error messages strictly
2018-12-07 09:29:01 +00:00
ozaki-r
fba119d2aa
tests: reduce repeated phrases... (NFC)
2018-12-07 09:28:31 +00:00
knakahara
d1268e2e86
Add ATF for IPv6 NAT-T.
...
We use IPv6 NAT-T to avoid IPsec slowing down caused by dropping ESP packets
by some Customer Premises Equipments (CPE). I implement ATF to test such
situation.
I think it can also work with nat66, but I have not tested to the fine details.
2018-11-22 04:51:41 +00:00
knakahara
3d0c03bef5
let ATF detect a bug fixed by if_vla.c:r1.132.
2018-11-14 05:07:48 +00:00
ozaki-r
82733c9693
Add a test to show a large number of MAC addresses cached in a bridge
2018-11-09 06:45:03 +00:00
yamaguchi
c9cc6dd9e6
Update the error message in t_vlan (ENXIO => EINVAL)
...
ok ozaki-r@
2018-06-14 08:38:24 +00:00
yamaguchi
9de5f4c04e
Add test cases for multicast address handling of vlan(4)
...
ok ozaki-r@
2018-06-14 08:22:52 +00:00
ozaki-r
9da465c4ef
Add tests of vlan with bridge
...
The tests trigger a panic reported in PR kern/53357.
2018-06-12 04:21:22 +00:00
maxv
8ad8ab65b1
Remove ping6_opts_hops, "-g" does not exist anymore (RH0 removed).
2018-04-26 06:23:33 +00:00
ozaki-r
0be59150b6
Add a test that checks if brconfig flush surely removes all entries
2018-04-18 04:03:12 +00:00
ozaki-r
f72ad93267
Add a test case for bridge_rtdelete
2018-04-10 07:09:00 +00:00
ozaki-r
810a5ee058
Fix typo
2018-04-07 12:36:58 +00:00
ozaki-r
6ca7de5d0d
Add tests for GARP without DAD
...
Additionally make the existing tests for GARP more explicit.
2018-04-06 09:23:36 +00:00
ozaki-r
9e4591fa4a
Show outputs of commands if $DEBUG
2018-04-06 09:22:38 +00:00
ozaki-r
4cb98a5a0c
Improve packet checks and error reporting
2018-04-06 09:21:57 +00:00
roy
64785daad7
Handle errors better.
...
Fix test for checking we sent all the data we asked to.
2018-03-26 09:11:15 +00:00
roy
8a9420adee
Allow a valid sendto .... duh
2018-03-24 15:51:57 +00:00
kamil
62ac00a826
Fix a printf(3)-like format in ATF ICMP t_ping.c
...
Use %zd for ssize_t, instead of %d.
2018-03-24 00:06:32 +00:00
roy
80b75699b5
Note value received. Harden another sendto for ENOBUFS.
2018-03-23 10:05:45 +00:00
roy
05ee2584ab
Handle ENOBUFS in sendto
2018-03-22 17:27:34 +00:00
roy
1875ff6c39
Handle ENOBUFS in recv
2018-03-22 17:16:05 +00:00
ozaki-r
57e881a906
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.
2018-03-22 09:21:24 +00:00
knakahara
a0d17a179a
Enhance assertion ipsecif(4) ATF to avoid confusing setkey(8) error message.
...
When setkey(8) says "syntax error at [-E]", it must mean get_if_ipsec_unique()
failed.
2018-03-13 03:50:26 +00:00
ozaki-r
d0486ec90d
Tweak tests; increase the size of NS packets for the addition of a nonce
2018-03-07 02:30:37 +00:00
ozaki-r
6963349e89
Provide more informative reports on failures
2018-03-07 02:30:00 +00:00
christos
0f242fe63e
make it compile again for those who don't have LOCAL_PEERCRED
2018-02-17 20:16:18 +00:00
christos
1d89963535
Add a test demonstrating thst LOCAL_PEEREID is busted.
2018-02-17 16:34:18 +00:00
christos
bf0b06cfe9
remove clause 3, 4.
2018-02-17 00:28:47 +00:00
christos
98cc4b91d3
Use the same variable name for the accepted socket as with the AF_LOCAL test.
...
Call getpeereid on the accepted socket.
2018-02-16 22:20:18 +00:00
christos
c587e5a36a
make sure we call getpeername on the accepted socket!
2018-02-16 22:17:17 +00:00
christos
596e712e68
ensure that getpeereid does not succeed on tcp sockets.
2018-02-16 19:24:16 +00:00
christos
e34e5e3adb
explain what's going on before we fix it.
2018-02-16 16:30:20 +00:00
christos
474def7698
add getpeereid tests for non-unix sockets, returns garbage...
2018-02-16 16:23:15 +00:00
christos
c88e952be5
add a getpeeeid test.
2018-02-16 16:08:22 +00:00
ozaki-r
def6ba19bd
Fix ping_opts_gateway and ping_opts_recordroute
...
We need to enable the options of source routing on all rump kernels.
2018-02-09 03:53:07 +00:00
maxv
f1624eef2e
Now that we don't allow source-routed packets by default, set allowsrcrt=1
...
and forwsrcrt=1. Should fix the ATF failure.
2018-02-08 09:56:19 +00:00
ozaki-r
95dd9007db
Commonalize and add tests of creating/destroying interfaces
2018-02-01 05:22:01 +00:00
ozaki-r
11f91074e6
Change the prefix of test names to ipsecif_ to distinguish from tests for ipsec(4)
2018-01-11 07:58:22 +00:00
knakahara
b8f54fc79b
add ipsec(4) interface ATF.
2018-01-10 11:06:06 +00:00
gson
ea958a7e2f
Use the default ATF timeout instead of a reduced one of 5 seconds,
...
which isn't enough for pmax under gxemul on babylon5.netbsd.org.
2017-12-30 22:02:34 +00:00
ozaki-r
0602b7c074
Adjust outputs of route's flags to include a numeric output
2017-12-18 04:11:46 +00:00