/linux/tools/testing/selftests/net/tcp_ao/ |
H A D | key-management.c | 38 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 78 del.rcvid = rcvid; 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 D | unsigned-md5.c | 40 uint8_t sndid, uint8_t rcvid, uint8_t vrf, in try_accept() argument 58 *ao_addr, ao_prefix, sndid, rcvid)) in try_accept() 259 uint8_t sndid, uint8_t rcvid, uint8_t vrf, in try_connect() argument 279 ao_prefix, sndid, rcvid)) in try_connect() 320 int vrf, uint8_t sndid, uint8_t rcvid, in try_add_key_vrf() argument 336 (uint8_t)vrf, sndid, rcvid); in try_add_key_vrf() 367 uint8_t sndid, uint8_t rcvid, in open_add() argument 386 sndid, rcvid, set_ao_required); in open_add() 412 uint8_t sndid, uint8_t rcvid, in try_to_preadd() argument 424 sndid, rcvid, inj); in try_to_preadd() [all …]
|
H A D | connect-deny.c | 10 uint8_t sndid, uint8_t rcvid) in test_add_key_maclen() argument 19 prefix, 0, sndid, rcvid, maclen, in test_add_key_maclen() 33 uint8_t sndid, uint8_t rcvid, uint8_t maclen, in try_accept() argument 44 if (pwd && test_add_key_maclen(lsk, pwd, maclen, addr, prefix, sndid, rcvid)) in try_accept() 163 uint8_t sndid, uint8_t rcvid, in try_connect() argument 174 if (pwd && test_add_key(sk, pwd, addr, prefix, sndid, rcvid)) in try_connect()
|
H A D | setsockopt-closed.c | 150 del->rcvid = 100; in prepare_defs() 486 del.rcvid = 101; in test_einval_del_key() 686 out.rcvid = 1; in test_einval_get_keys() 710 out.rcvid = 1; in test_einval_get_keys() 734 out.rcvid = 1; in test_einval_get_keys() 806 ao.rcvid = 101; in duplicate_tests()
|
H A D | bench-lookups.c | 154 ao_del.rcvid = 100; in bench_delete()
|
/linux/tools/testing/selftests/net/tcp_ao/lib/ |
H A D | sock.c | 140 uint8_t prefix, uint8_t vrf, uint8_t sndid, uint8_t rcvid, in test_prepare_key_sockaddr() argument 150 ao->rcvid = rcvid; in test_prepare_key_sockaddr() 184 uint8_t sndid, uint8_t rcvid) in test_get_one_ao() argument 193 tmp.rcvid = rcvid; in test_get_one_ao() 249 __cmp_ao(rcvid); in test_cmp_getsockopt_setsockopt() 397 out->key_cnts[nr_keys].rcvid = key_dump[nr_keys].rcvid; in test_get_tcp_ao_counters() 451 int sndid, int rcvid) in test_tcp_ao_key_counters_cmp() argument 461 before->key_cnts[i].rcvid); \ in test_tcp_ao_key_counters_cmp() 470 before->key_cnts[i].rcvid); \ in test_tcp_ao_key_counters_cmp() 486 if (rcvid >= 0 && before->key_cnts[i].rcvid != rcvid) in test_tcp_ao_key_counters_cmp()
|
H A D | aolib.h | 372 uint8_t sndid, uint8_t rcvid, uint8_t maclen, 379 uint8_t sndid, uint8_t rcvid, uint8_t maclen, in test_prepare_key() argument 386 set_current, set_rnext, prefix, vrf, sndid, rcvid, in test_prepare_key() 393 uint8_t sndid, uint8_t rcvid) in test_prepare_def_key() argument 399 prefix, vrf, sndid, rcvid, 0, keyflags, in test_prepare_def_key() 405 uint8_t prefix, uint8_t sndid, uint8_t rcvid); 419 key->prefix, key->sndid, key->rcvid); in test_verify_socket_key() 429 uint8_t vrf, uint8_t sndid, uint8_t rcvid) in test_add_key_vrf() argument 435 vrf, sndid, rcvid); in test_add_key_vrf() 448 uint8_t sndid, uint8_t rcvid) in test_add_key() argument [all …]
|
H A D | kconfig.c | 58 tmp.rcvid = 100; in has_tcp_ao()
|
/linux/include/net/ |
H A D | tcp_ao.h | 47 u8 rcvid; member 187 int sndid, int rcvid); 207 int family, int sndid, int rcvid); 221 int sndid, int rcvid); 232 int sndid, int rcvid); 248 struct sock *addr_sk, int sndid, int rcvid); 251 int sndid, int rcvid); 294 int family, int sndid, int rcvid) in tcp_ao_do_lookup() argument
|
H A D | tcp.h | 2255 int sndid, int rcvid); 2278 int sndid, int rcvid);
|
/linux/net/ipv4/ |
H A D | tcp_ao.c | 113 int sndid, int rcvid) in tcp_ao_established_key() argument 119 (rcvid >= 0 && key->rcvid != rcvid)) in tcp_ao_established_key() 142 int family, int sndid, int rcvid) in __tcp_ao_key_cmp() argument 146 if (rcvid >= 0 && key->rcvid != rcvid) in __tcp_ao_key_cmp() 147 return (key->rcvid > rcvid) ? 1 : -1; in __tcp_ao_key_cmp() 178 int family, int sndid, int rcvid) in tcp_ao_key_cmp() argument 186 prefixlen, AF_INET, sndid, rcvid); in tcp_ao_key_cmp() 190 prefixlen, family, sndid, rcvid); in tcp_ao_key_cmp() 195 int sndid, int rcvid) in __tcp_ao_do_lookup() argument 212 family, sndid, rcvid)) in __tcp_ao_do_lookup() [all …]
|
H A D | tcp_ipv4.c | 1065 key.rcv_next = rnext_key->rcvid;
|
H A D | tcp_output.c | 634 (rnext_key->rcvid)); in process_tcp_ao_options()
|
/linux/net/ipv6/ |
H A D | tcp_ao.c | 92 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 D | tcp_ipv6.c | 1182 key.rcv_next = rnext_key->rcvid;
|
/linux/include/uapi/linux/ |
H A D | tcp.h | 390 __u8 rcvid; /* RecvID to match for incoming seg */ member 407 __u8 rcvid; /* RecvID to match for incoming seg */ member 452 __u8 rcvid; /* in/out: dump keys with RecvID */ member
|
/linux/Documentation/networking/ |
H A D | tcp_ao.rst | 316 peer and/or sndid/rcvid, VRF L3 interface or get current_key/rnext_key.
|