Home
last modified time | relevance | path

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

/linux-6.1.9/net/ipv4/
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()
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 …]
Dtcp_ipv4.c1080 const struct tcp_md5sig_info *md5sig; in __tcp_md5_do_lookup() local
1086 md5sig = rcu_dereference_check(tp->md5sig_info, in __tcp_md5_do_lookup()
1088 if (!md5sig) in __tcp_md5_do_lookup()
1091 hlist_for_each_entry_rcu(key, &md5sig->head, node, in __tcp_md5_do_lookup()
1125 const struct tcp_md5sig_info *md5sig; in tcp_md5_do_lookup_exact() local
1128 md5sig = rcu_dereference_check(tp->md5sig_info, in tcp_md5_do_lookup_exact()
1130 if (!md5sig) in tcp_md5_do_lookup_exact()
1136 hlist_for_each_entry_rcu(key, &md5sig->head, node, in tcp_md5_do_lookup_exact()
1172 struct tcp_md5sig_info *md5sig; in tcp_md5_do_add() local
1194 md5sig = rcu_dereference_protected(tp->md5sig_info, in tcp_md5_do_add()
[all …]
/linux-6.1.9/tools/testing/selftests/net/
Dnettest.c265 struct tcp_md5sig md5sig = {}; in tcp_md5sig() local
269 md5sig.tcpm_keylen = keylen; in tcp_md5sig()
270 memcpy(md5sig.tcpm_key, args->password, keylen); in tcp_md5sig()
274 md5sig.tcpm_flags |= TCP_MD5SIG_FLAG_PREFIX; in tcp_md5sig()
276 md5sig.tcpm_prefixlen = args->prefix_len; in tcp_md5sig()
279 memcpy(&md5sig.tcpm_addr, addr, alen); in tcp_md5sig()
283 md5sig.tcpm_flags |= TCP_MD5SIG_FLAG_IFINDEX; in tcp_md5sig()
285 md5sig.tcpm_ifindex = args->ifindex; in tcp_md5sig()
286 log_msg("TCP_MD5SIG_FLAG_IFINDEX set tcpm_ifindex=%d\n", md5sig.tcpm_ifindex); in tcp_md5sig()
288 log_msg("TCP_MD5SIG_FLAG_IFINDEX off\n", md5sig.tcpm_ifindex); in tcp_md5sig()
[all …]