Searched refs:md5sig (Results 1 – 5 of 5) sorted by relevance
/linux/net/ipv4/ |
H A D | tcp_diag.c | 56 const struct tcp_md5sig_info *md5sig) in tcp_diag_put_md5sig() argument 63 hlist_for_each_entry_rcu(key, &md5sig->head, node) in tcp_diag_put_md5sig() 75 hlist_for_each_entry_rcu(key, &md5sig->head, node) { in tcp_diag_put_md5sig() 120 struct tcp_md5sig_info *md5sig; in tcp_diag_get_aux() local 123 md5sig = rcu_dereference(tcp_sk(sk)->md5sig_info); in tcp_diag_get_aux() 124 if (md5sig) in tcp_diag_get_aux() 125 err = tcp_diag_put_md5sig(skb, md5sig); in tcp_diag_get_aux() 151 const struct tcp_md5sig_info *md5sig; in tcp_diag_get_aux_size() local 156 md5sig = rcu_dereference(tcp_sk(sk)->md5sig_info); in tcp_diag_get_aux_size() 157 if (md5sig) { in tcp_diag_get_aux_size() [all …]
|
H A D | tcp_ipv4.c | 1254 const struct tcp_md5sig_info *md5sig; local 1260 md5sig = rcu_dereference_check(tp->md5sig_info, 1262 if (!md5sig) 1265 hlist_for_each_entry_rcu(key, &md5sig->head, node, 1300 const struct tcp_md5sig_info *md5sig; local 1303 md5sig = rcu_dereference_check(tp->md5sig_info, 1305 if (!md5sig) 1311 hlist_for_each_entry_rcu(key, &md5sig->head, node, 1342 struct tcp_md5sig_info *md5sig; local 1344 md5sig = kmalloc(sizeof(*md5sig), gfp); [all …]
|
H A D | tcp_ao.c | 1939 const struct tcp_md5sig_info *md5sig; in tcp_ao_required_verify() local 1944 md5sig = rcu_dereference_check(tcp_sk(sk)->md5sig_info, in tcp_ao_required_verify() 1946 if (!md5sig) in tcp_ao_required_verify() 1949 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 | 120 struct tcp_md5sig md5sig = {}; in __test_set_md5() local 122 md5sig.tcpm_keylen = pwd_len; in __test_set_md5() 123 memcpy(md5sig.tcpm_key, password, pwd_len); in __test_set_md5() 124 md5sig.tcpm_flags = TCP_MD5SIG_FLAG_PREFIX; in __test_set_md5() 125 md5sig.tcpm_prefixlen = prefix; in __test_set_md5() 127 md5sig.tcpm_flags |= TCP_MD5SIG_FLAG_IFINDEX; in __test_set_md5() 128 md5sig.tcpm_ifindex = (uint8_t)vrf; in __test_set_md5() 130 memcpy(&md5sig.tcpm_addr, addr, addr_sz); in __test_set_md5() 134 &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 …]
|