| /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, asyn in try_delete_key() 171 test_add_current_rnext_key(int sk,const char * key,uint8_t keyflags,union tcp_addr in_addr,uint8_t prefix,bool set_current,bool set_rnext,uint8_t sndid,uint8_t rcvid) test_add_current_rnext_key() argument 194 __try_add_current_rnext_key(int sk,const char * key,uint8_t keyflags,union tcp_addr in_addr,uint8_t prefix,bool set_current,bool set_rnext,uint8_t sndid,uint8_t rcvid) __try_add_current_rnext_key() argument 217 try_add_current_rnext_key(char * tst_name,int sk,const char * key,uint8_t keyflags,union tcp_addr in_addr,uint8_t prefix,bool set_current,bool set_rnext,uint8_t sndid,uint8_t rcvid,fault_t inj) try_add_current_rnext_key() argument 523 test_add_key_cr(int sk,const char * pwd,unsigned int pwd_len,union tcp_addr addr,uint8_t vrf,uint8_t sndid,uint8_t rcvid,uint8_t maclen,const char * alg,bool set_current,bool set_rnext) test_add_key_cr() argument 595 uint8_t sndid, rcvid, vrf; key_collection_socket() local 640 uint8_t sndid, rcvid; verify_counters() local 665 lookup_key(struct tcp_ao_getsockopt * buf,size_t len,int sndid,int rcvid) lookup_key() argument 704 uint8_t sndid, rcvid; verify_keys() local 898 int sndid = -1, rcvid = -1; run_client() local [all...] |
| H A D | unsigned-md5.c | 41 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 D | connect-deny.c | 11 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 D | setsockopt-closed.c | 152 del->rcvid = 100; in prepare_defs() 488 del.rcvid = 101; in test_einval_del_key() 688 out.rcvid = 1; in test_einval_get_keys() 712 out.rcvid = 1; in test_einval_get_keys() 736 out.rcvid = 1; in test_einval_get_keys() 808 ao.rcvid = 101; in duplicate_tests() 834 u8 rcvid = 100, sndid = 100; in prepare_test_keys() local 845 rcvid++, 0, 0, strlen(test_password_scratch), in prepare_test_keys() 853 test_ao[2].rcvid = 100; in prepare_test_keys() 927 filter.rcvid = original_keys[f].rcvid; in filter_tests() [all …]
|
| 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 | 211 uint8_t prefix, uint8_t vrf, uint8_t sndid, uint8_t rcvid, in test_prepare_key_sockaddr() argument 221 ao->rcvid = rcvid; in test_prepare_key_sockaddr() 255 uint8_t sndid, uint8_t rcvid) in test_get_one_ao() argument 264 tmp.rcvid = rcvid; in test_get_one_ao() 320 __cmp_ao(rcvid); in test_cmp_getsockopt_setsockopt() 473 out->ao.key_cnts[nr_keys].rcvid = key_dump[nr_keys].rcvid; in test_get_tcp_counters() 539 test_cnt expected, int sndid, int rcvid) in test_assert_counters_key() argument 549 before->key_cnts[i].rcvid); \ in test_assert_counters_key() 558 before->key_cnts[i].rcvid); \ in test_assert_counters_key() 574 if (rcvid >= 0 && before->key_cnts[i].rcvid != rcvid) in test_assert_counters_key()
|
| H A D | aolib.h | 374 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 D | kconfig.c | 58 tmp.rcvid = 100; in has_tcp_ao()
|
| /linux/net/ipv4/ |
| H A D | tcp_ao.c | 218 int sndid, int rcvid) in __tcp_ao_do_lookup() 225 (rcvid >= 0 && key->rcvid != rcvid)) in tcp_ao_do_lookup() 248 int family, int sndid, int rcvid) in tcp_ao_copy_key() 252 if (rcvid >= 0 && key->rcvid != rcvid) in tcp_ao_copy_key() 253 return (key->rcvid > rcvid) in tcp_ao_copy_key() 115 tcp_ao_established_key(const struct sock * sk,struct tcp_ao_info * ao,int sndid,int rcvid) tcp_ao_established_key() argument 145 __tcp_ao_key_cmp(const struct tcp_ao_key * key,int l3index,const union tcp_ao_addr * addr,u8 prefixlen,int family,int sndid,int rcvid) __tcp_ao_key_cmp() argument 181 tcp_ao_key_cmp(const struct tcp_ao_key * key,int l3index,const union tcp_ao_addr * addr,u8 prefixlen,int family,int sndid,int rcvid) tcp_ao_key_cmp() argument 198 __tcp_ao_do_lookup(const struct sock * sk,int l3index,const union tcp_ao_addr * addr,int family,u8 prefix,int sndid,int rcvid) __tcp_ao_do_lookup() argument 223 tcp_ao_do_lookup(const struct sock * sk,int l3index,const union tcp_ao_addr * addr,int family,int sndid,int rcvid) tcp_ao_do_lookup() argument 705 tcp_v4_ao_lookup_rsk(const struct sock * sk,struct request_sock * req,int sndid,int rcvid) tcp_v4_ao_lookup_rsk() argument 716 tcp_v4_ao_lookup(const struct sock * sk,struct sock * addr_sk,int sndid,int rcvid) tcp_v4_ao_lookup() argument 849 tcp_ao_inbound_lookup(unsigned short int family,const struct sock * sk,const struct sk_buff * skb,int sndid,int rcvid,int l3index) tcp_ao_inbound_lookup() argument [all...] |
| H A D | tcp_ipv4.c | 1052 key.rcv_next = rnext_key->rcvid;
|
| H A D | tcp_output.c | 623 (rnext_key->rcvid)); in process_tcp_ao_options()
|
| /linux/net/ipv6/ |
| H A D | tcp_ao.c | 81 int sndid, int rcvid) in tcp_v6_ao_calc_key_rsk() 88 AF_INET6, sndid, rcvid); in tcp_v6_ao_calc_key_rsk() 93 int sndid, int rcvid) in tcp_v6_ao_lookup() 101 AF_INET6, sndid, rcvid); 92 tcp_v6_ao_lookup(const struct sock * sk,struct sock * addr_sk,int sndid,int rcvid) tcp_v6_ao_lookup() argument 104 tcp_v6_ao_lookup_rsk(const struct sock * sk,struct request_sock * req,int sndid,int rcvid) tcp_v6_ao_lookup_rsk() argument
|
| H A D | tcp_ipv6.c | 1183 key.rcv_next = rnext_key->rcvid;
|
| /linux/include/net/ |
| H A D | tcp.h | 2488 int sndid, int rcvid); 2511 int sndid, int rcvid);
|
| /linux/Documentation/networking/ |
| H A D | tcp_ao.rst | 332 peer and/or sndid/rcvid, VRF L3 interface or get current_key/rnext_key.
|