Home
last modified time | relevance | path

Searched refs:md5sig (Results 1 – 5 of 5) sorted by relevance

/linux-6.15/net/ipv4/
H A Dtcp_diag.c56 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()
121 struct tcp_md5sig_info *md5sig; in tcp_diag_get_aux() local
124 md5sig = rcu_dereference(tcp_sk(sk)->md5sig_info); in tcp_diag_get_aux()
125 if (md5sig) in tcp_diag_get_aux()
126 err = tcp_diag_put_md5sig(skb, md5sig); in tcp_diag_get_aux()
150 const struct tcp_md5sig_info *md5sig; in tcp_diag_get_aux_size() local
155 md5sig = rcu_dereference(tcp_sk(sk)->md5sig_info); in tcp_diag_get_aux_size()
156 if (md5sig) { in tcp_diag_get_aux_size()
[all …]
H A Dtcp_ipv4.c1276 if (!md5sig)
1319 if (!md5sig)
1356 struct tcp_md5sig_info *md5sig; local
1358 md5sig = kmalloc(sizeof(*md5sig), gfp);
1359 if (!md5sig)
1363 INIT_HLIST_HEAD(&md5sig->head);
1376 struct tcp_md5sig_info *md5sig; local
1438 kfree_rcu(md5sig, rcu);
1469 kfree_rcu(md5sig, rcu);
1501 struct tcp_md5sig_info *md5sig; local
[all …]
H A Dtcp_ao.c1941 const struct tcp_md5sig_info *md5sig; in tcp_ao_required_verify() local
1946 md5sig = rcu_dereference_check(tcp_sk(sk)->md5sig_info, in tcp_ao_required_verify()
1948 if (!md5sig) in tcp_ao_required_verify()
1951 if (rcu_dereference_check(hlist_first_rcu(&md5sig->head), in tcp_ao_required_verify()
/linux-6.15/tools/testing/selftests/net/tcp_ao/lib/
H A Dsock.c191 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-6.15/tools/testing/selftests/net/
H A Dnettest.c268 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 …]