Home
last modified time | relevance | path

Searched refs:sndid (Results 1 – 14 of 14) sorted by relevance

/linux/tools/testing/selftests/net/tcp_ao/
H A Dkey-management.c38 static int prepare_sk(union tcp_addr *addr, uint8_t sndid, uint8_t rcvid) in prepare_sk() argument
50 DEFAULT_TEST_PREFIX, sndid, rcvid)) in prepare_sk()
56 static int prepare_lsk(union tcp_addr *addr, uint8_t sndid, uint8_t rcvid) in prepare_lsk() argument
58 int sk = prepare_sk(addr, sndid, rcvid); in prepare_lsk()
66 static int test_del_key(int sk, uint8_t sndid, uint8_t rcvid, bool async, in test_del_key() argument
77 del.sndid = sndid; in test_del_key()
98 DEFAULT_TEST_PREFIX, sndid, rcvid); in test_del_key()
114 static void try_delete_key(char *tst_name, int sk, uint8_t sndid, uint8_t rcvid, in try_delete_key() argument
120 err = test_del_key(sk, sndid, rcvid, async, current_key, rnext_key); in try_delete_key()
127 tst_name, sndid, rcvid, err); in try_delete_key()
[all …]
H A Dunsigned-md5.c41 uint8_t sndid, uint8_t rcvid, uint8_t vrf, in try_accept() argument
59 *ao_addr, ao_prefix, sndid, rcvid)) in try_accept()
267 uint8_t sndid, uint8_t rcvid, uint8_t vrf, in try_connect() argument
286 ao_prefix, sndid, rcvid)) in try_connect()
325 int vrf, uint8_t sndid, uint8_t rcvid, in try_add_key_vrf() argument
341 (uint8_t)vrf, sndid, rcvid); in try_add_key_vrf()
372 uint8_t sndid, uint8_t rcvid, in open_add() argument
391 sndid, rcvid, set_ao_required); in open_add()
417 uint8_t sndid, uint8_t rcvid, in try_to_preadd() argument
429 sndid, rcvid, inj); in try_to_preadd()
[all …]
H A Dconnect-deny.c11 uint8_t sndid, uint8_t rcvid) in test_add_key_maclen() argument
20 prefix, 0, sndid, rcvid, maclen, in test_add_key_maclen()
34 uint8_t sndid, uint8_t rcvid, uint8_t maclen, in try_accept() argument
45 if (pwd && test_add_key_maclen(lsk, pwd, maclen, addr, prefix, sndid, rcvid)) in try_accept()
168 uint8_t sndid, uint8_t rcvid, in try_connect() argument
178 if (pwd && test_add_key(sk, pwd, addr, prefix, sndid, rcvid)) in try_connect()
H A Dsetsockopt-closed.c151 del->sndid = 100; in prepare_defs()
484 del.sndid = 101; in test_einval_del_key()
683 out.sndid = 1; in test_einval_get_keys()
706 out.sndid = 1; in test_einval_get_keys()
730 out.sndid = 1; in test_einval_get_keys()
814 ao.sndid = 101; in duplicate_tests()
834 u8 rcvid = 100, sndid = 100; in prepare_test_keys() local
844 false, false, DEFAULT_TEST_PREFIX, 0, sndid++, in prepare_test_keys()
852 test_ao[2].sndid = 100; in prepare_test_keys()
928 filter.sndid = original_keys[f].sndid; in filter_tests()
[all …]
H A Dbench-lookups.c153 ao_del.sndid = 100; in bench_delete()
/linux/tools/testing/selftests/net/tcp_ao/lib/
H A Dsock.c211 uint8_t prefix, uint8_t vrf, uint8_t sndid, uint8_t rcvid, in test_prepare_key_sockaddr() argument
220 ao->sndid = sndid; in test_prepare_key_sockaddr()
255 uint8_t sndid, uint8_t rcvid) in test_get_one_ao() argument
263 tmp.sndid = sndid; in test_get_one_ao()
319 __cmp_ao(sndid); in test_cmp_getsockopt_setsockopt()
472 out->ao.key_cnts[nr_keys].sndid = key_dump[nr_keys].sndid; in test_get_tcp_counters()
539 test_cnt expected, int sndid, int rcvid) in test_assert_counters_key() argument
548 before->key_cnts[i].sndid, \ in test_assert_counters_key()
557 before->key_cnts[i].sndid, \ in test_assert_counters_key()
572 if (sndid >= 0 && before->key_cnts[i].sndid != sndid) in test_assert_counters_key()
H A Daolib.h374 uint8_t sndid, uint8_t rcvid, uint8_t maclen,
381 uint8_t sndid, uint8_t rcvid, uint8_t maclen, in test_prepare_key() argument
388 set_current, set_rnext, prefix, vrf, sndid, rcvid, in test_prepare_key()
395 uint8_t sndid, uint8_t rcvid) in test_prepare_def_key() argument
401 prefix, vrf, sndid, rcvid, 0, keyflags, in test_prepare_def_key()
407 uint8_t prefix, uint8_t sndid, uint8_t rcvid);
421 key->prefix, key->sndid, key->rcvid); in test_verify_socket_key()
431 uint8_t vrf, uint8_t sndid, uint8_t rcvid) in test_add_key_vrf() argument
437 vrf, sndid, rcvid); in test_add_key_vrf()
450 uint8_t sndid, uint8_t rcvid) in test_add_key() argument
[all …]
H A Dkconfig.c57 tmp.sndid = 100; in has_tcp_ao()
/linux/net/ipv4/
H A Dtcp_ao.c114 int sndid, int rcvid) in tcp_ao_established_key() argument
119 if ((sndid >= 0 && key->sndid != sndid) || in tcp_ao_established_key()
143 int family, int sndid, int rcvid) in __tcp_ao_key_cmp() argument
145 if (sndid >= 0 && key->sndid != sndid) in __tcp_ao_key_cmp()
146 return (key->sndid > sndid) ? 1 : -1; in __tcp_ao_key_cmp()
179 int family, int sndid, int rcvid) in tcp_ao_key_cmp() argument
187 prefixlen, AF_INET, sndid, rcvid); in tcp_ao_key_cmp()
191 prefixlen, family, sndid, rcvid); in tcp_ao_key_cmp()
196 int sndid, int rcvid) in __tcp_ao_do_lookup() argument
213 family, sndid, rcvid)) in __tcp_ao_do_lookup()
[all …]
H A Dtcp_output.c600 (key->ao_key->sndid << 8) | in process_tcp_ao_options()
/linux/net/ipv6/
H A Dtcp_ao.c92 int sndid, int rcvid) in tcp_v6_ao_lookup() argument
99 AF_INET6, sndid, rcvid); in tcp_v6_ao_lookup()
104 int sndid, int rcvid) in tcp_v6_ao_lookup_rsk() argument
112 AF_INET6, sndid, rcvid); in tcp_v6_ao_lookup_rsk()
H A Dtcp_ipv6.c899 (key->ao_key->sndid << 8) | in tcp_v6_send_response()
/linux/include/net/
H A Dtcp.h2371 int sndid, int rcvid);
2394 int sndid, int rcvid);
/linux/Documentation/networking/
H A Dtcp_ao.rst316 peer and/or sndid/rcvid, VRF L3 interface or get current_key/rnext_key.