selftest/tcp-ao: Add filter tests
authorLeo Stone <leocstone@gmail.com>
Mon, 21 Oct 2024 17:46:44 +0000 (10:46 -0700)
committerJakub Kicinski <kuba@kernel.org>
Mon, 28 Oct 2024 22:53:50 +0000 (15:53 -0700)
commit47e99f30730c0167cd32c9a2fd4a74f0a024cb2b
tree91309c85e14840c452ebbe38aa18c97f35c00db3
parent9f6cb31979739e46b4f863cf13736f8298cbd21e
selftest/tcp-ao: Add filter tests

Add tests that check if getsockopt(TCP_AO_GET_KEYS) returns the right
keys when using different filters.

Sample output:

> # ok 114 filter keys: by sndid, rcvid, address
> # ok 115 filter keys: by is_current
> # ok 116 filter keys: by is_rnext
> # ok 117 filter keys: by sndid, rcvid
> # ok 118 filter keys: correct nkeys when in.nkeys < matches

Acked-by: Dmitry Safonov <0x7f454c46@gmail.com>
Signed-off-by: Leo Stone <leocstone@gmail.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20241021174652.6949-1-leocstone@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/tcp_ao/setsockopt-closed.c