Searched refs:md5sig (Results 1 – 5 of 5) sorted by relevance
| /linux/net/ipv4/ |
| H A D | tcp_diag.c | 59 const struct tcp_md5sig_info *md5sig) in tcp_diag_put_md5sig() argument 66 hlist_for_each_entry_rcu(key, &md5sig->head, node) in tcp_diag_put_md5sig() 78 hlist_for_each_entry_rcu(key, &md5sig->head, node) { in tcp_diag_put_md5sig() 124 struct tcp_md5sig_info *md5sig; in tcp_diag_get_aux() local 127 md5sig = rcu_dereference(tcp_sk(sk)->md5sig_info); in tcp_diag_get_aux() 128 if (md5sig) in tcp_diag_get_aux() 129 err = tcp_diag_put_md5sig(skb, md5sig); in tcp_diag_get_aux() 153 const struct tcp_md5sig_info *md5sig; in tcp_diag_get_aux_size() local 158 md5sig = rcu_dereference(tcp_sk(sk)->md5sig_info); in tcp_diag_get_aux_size() 159 if (md5sig) { in tcp_diag_get_aux_size() [all …]
|
| H A D | tcp_ipv4.c | 1242 const struct tcp_md5sig_info *md5sig; local 1248 md5sig = rcu_dereference_check(tp->md5sig_info, 1250 if (!md5sig) 1253 hlist_for_each_entry_rcu(key, &md5sig->head, node, 1287 const struct tcp_md5sig_info *md5sig; local 1290 md5sig = rcu_dereference_check(tp->md5sig_info, 1292 if (!md5sig) 1298 hlist_for_each_entry_rcu(key, &md5sig->head, node, 1328 struct tcp_md5sig_info *md5sig; local 1330 md5sig = kmalloc_obj(*md5sig, gfp); [all …]
|
| H A D | tcp_ao.c | 1943 const struct tcp_md5sig_info *md5sig; in tcp_ao_required_verify() local 1948 md5sig = rcu_dereference_check(tcp_sk(sk)->md5sig_info, in tcp_ao_required_verify() 1950 if (!md5sig) in tcp_ao_required_verify() 1953 if (rcu_dereference_check(hlist_first_rcu(&md5sig->head), in tcp_ao_required_verify()
|
| /linux/tools/testing/selftests/net/tcp_ao/lib/ |
| H 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()
|
| /linux/tools/testing/selftests/net/ |
| H 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 …]
|