Lines Matching full:ao
138 int test_prepare_key_sockaddr(struct tcp_ao_add *ao, const char *alg, in test_prepare_key_sockaddr() argument
144 memset(ao, 0, sizeof(struct tcp_ao_add)); in test_prepare_key_sockaddr()
146 ao->set_current = !!set_current; in test_prepare_key_sockaddr()
147 ao->set_rnext = !!set_rnext; in test_prepare_key_sockaddr()
148 ao->prefix = prefix; in test_prepare_key_sockaddr()
149 ao->sndid = sndid; in test_prepare_key_sockaddr()
150 ao->rcvid = rcvid; in test_prepare_key_sockaddr()
151 ao->maclen = maclen; in test_prepare_key_sockaddr()
152 ao->keyflags = keyflags; in test_prepare_key_sockaddr()
153 ao->keylen = keylen; in test_prepare_key_sockaddr()
154 ao->ifindex = vrf; in test_prepare_key_sockaddr()
156 memcpy(&ao->addr, addr, addr_sz); in test_prepare_key_sockaddr()
160 strncpy(ao->alg_name, alg, 64); in test_prepare_key_sockaddr()
162 memcpy(ao->key, key, in test_prepare_key_sockaddr()
306 test_fail("getsockopt(): returned ao doesn't have ao_required"); in test_cmp_getsockopt_setsockopt_ao()
310 test_fail("getsockopt(): returned ao doesn't accept ICMPs"); in test_cmp_getsockopt_setsockopt_ao()