Searched refs:md5sig (Results 1 – 2 of 2) sorted by relevance
| /tools/testing/selftests/net/tcp_ao/lib/ |
| A D | sock.c | 191 struct tcp_md5sig md5sig = {}; in __test_set_md5() local 193 md5sig.tcpm_keylen = pwd_len; in __test_set_md5() 194 memcpy(md5sig.tcpm_key, password, pwd_len); in __test_set_md5() 195 md5sig.tcpm_flags = TCP_MD5SIG_FLAG_PREFIX; in __test_set_md5() 196 md5sig.tcpm_prefixlen = prefix; in __test_set_md5() 198 md5sig.tcpm_flags |= TCP_MD5SIG_FLAG_IFINDEX; in __test_set_md5() 199 md5sig.tcpm_ifindex = (uint8_t)vrf; in __test_set_md5() 201 memcpy(&md5sig.tcpm_addr, addr, addr_sz); in __test_set_md5() 205 &md5sig, sizeof(md5sig)); in __test_set_md5()
|
| /tools/testing/selftests/net/ |
| A D | nettest.c | 268 struct tcp_md5sig md5sig = {}; in tcp_md5sig() local 272 md5sig.tcpm_keylen = keylen; in tcp_md5sig() 273 memcpy(md5sig.tcpm_key, args->password, keylen); in tcp_md5sig() 277 md5sig.tcpm_flags |= TCP_MD5SIG_FLAG_PREFIX; in tcp_md5sig() 279 md5sig.tcpm_prefixlen = args->prefix_len; in tcp_md5sig() 282 memcpy(&md5sig.tcpm_addr, addr, alen); in tcp_md5sig() 286 md5sig.tcpm_flags |= TCP_MD5SIG_FLAG_IFINDEX; in tcp_md5sig() 288 md5sig.tcpm_ifindex = args->ifindex; in tcp_md5sig() 289 log_msg("TCP_MD5SIG_FLAG_IFINDEX set tcpm_ifindex=%d\n", md5sig.tcpm_ifindex); in tcp_md5sig() 291 log_msg("TCP_MD5SIG_FLAG_IFINDEX off\n", md5sig.tcpm_ifindex); in tcp_md5sig() [all …]
|
Completed in 7 milliseconds