Home
last modified time | relevance | path

Searched refs:tcp_ao_getsockopt (Results 1 – 6 of 6) sorted by relevance

/linux/tools/testing/selftests/net/tcp_ao/
H A Dsetsockopt-closed.c94 if (*len != sizeof(struct tcp_ao_getsockopt)) in __setsockopt_checked()
167 struct tcp_ao_getsockopt *get = optval; in prepare_defs()
172 memset(get, 0, sizeof(struct tcp_ao_getsockopt)); in prepare_defs()
190 struct tcp_ao_getsockopt get; in test_extend()
592 static void getsockopt_checked(int sk, struct tcp_ao_getsockopt *optval, in getsockopt_checked()
595 socklen_t len = sizeof(struct tcp_ao_getsockopt); in getsockopt_checked()
603 struct tcp_ao_getsockopt out; in test_einval_get_keys()
818 static void fetch_all_keys(int sk, struct tcp_ao_getsockopt *keys) in fetch_all_keys()
820 socklen_t optlen = sizeof(struct tcp_ao_getsockopt); in fetch_all_keys()
822 memset(keys, 0, sizeof(struct tcp_ao_getsockopt) * FILTER_TEST_NKEYS); in fetch_all_keys()
[all …]
H A Dkey-management.c70 struct tcp_ao_getsockopt key = {}; in test_del_key()
664 static struct tcp_ao_getsockopt *lookup_key(struct tcp_ao_getsockopt *buf, in lookup_key()
682 socklen_t len = sizeof(struct tcp_ao_getsockopt); in verify_keys()
683 struct tcp_ao_getsockopt *keys; in verify_keys()
701 struct tcp_ao_getsockopt *dump_key; in verify_keys()
/linux/tools/testing/selftests/net/tcp_ao/lib/
H A Dsock.c169 struct tcp_ao_getsockopt tmp = {}; in test_get_ao_keys_nr()
182 int test_get_one_ao(int sk, struct tcp_ao_getsockopt *out, in test_get_one_ao()
186 struct tcp_ao_getsockopt tmp = {}; in test_get_one_ao()
230 const struct tcp_ao_getsockopt *b) in test_cmp_getsockopt_setsockopt()
338 struct tcp_ao_getsockopt *key_dump; in test_get_tcp_ao_counters()
H A Daolib.h404 extern int test_get_one_ao(int sk, struct tcp_ao_getsockopt *out,
410 const struct tcp_ao_getsockopt *b);
416 struct tcp_ao_getsockopt key2 = {}; in test_verify_socket_key()
/linux/net/ipv4/
H A Dtcp_ao.c2110 struct tcp_ao_getsockopt opt_in, opt_out; in tcp_ao_copy_mkts_to_user()
2128 memset(&opt_in, 0, sizeof(struct tcp_ao_getsockopt)); in tcp_ao_copy_mkts_to_user()
2230 bytes_to_write = min_t(int, user_len, sizeof(struct tcp_ao_getsockopt)); in tcp_ao_copy_mkts_to_user()
2257 memset(&opt_out, 0, sizeof(struct tcp_ao_getsockopt)); in tcp_ao_copy_mkts_to_user()
2294 optlen_out = (int)sizeof(struct tcp_ao_getsockopt); in tcp_ao_copy_mkts_to_user()
2298 out_offset = offsetof(struct tcp_ao_getsockopt, nkeys); in tcp_ao_copy_mkts_to_user()
/linux/include/uapi/linux/
H A Dtcp.h431 struct tcp_ao_getsockopt { /* getsockopt(TCP_AO_GET_KEYS) */ struct