Lines Matching full:ao
3 * TCP-AO selftest library. Provides helpers to unshare network
369 extern int test_prepare_key_sockaddr(struct tcp_ao_add *ao, const char *alg,
375 static inline int test_prepare_key(struct tcp_ao_add *ao, in test_prepare_key() argument
385 return test_prepare_key_sockaddr(ao, alg, (void *)&addr, sizeof(addr), in test_prepare_key()
390 static inline int test_prepare_def_key(struct tcp_ao_add *ao, in test_prepare_def_key() argument
398 return test_prepare_key(ao, DEFAULT_TEST_ALGO, in_addr, false, false, in test_prepare_def_key()
453 static inline int test_verify_socket_ao(int sk, struct tcp_ao_info_opt *ao) in test_verify_socket_ao() argument
462 return test_cmp_getsockopt_setsockopt_ao(ao, &ao2); in test_verify_socket_ao()
467 struct tcp_ao_info_opt ao = {}; in test_set_ao_flags() local
470 err = test_get_ao_info(sk, &ao); in test_set_ao_flags()
475 ao.ao_required = !!ao_required; in test_set_ao_flags()
476 ao.accept_icmps = !!accept_icmps; in test_set_ao_flags()
477 err = test_set_ao_info(sk, &ao); in test_set_ao_flags()
481 return test_verify_socket_ao(sk, &ao); in test_set_ao_flags()