/net/ipv6/ |
H A D | inet6_connection_sock.c | 33 const struct sock *sk2; local 43 sk_for_each_bound(sk2, &tb->owners) { 44 if (sk != sk2 && 46 !sk2->sk_bound_dev_if || 47 sk->sk_bound_dev_if == sk2->sk_bound_dev_if)) { 48 if ((!reuse || !sk2->sk_reuse || 49 sk2->sk_state == TCP_LISTEN) && 50 (!reuseport || !sk2->sk_reuseport || 51 (sk2->sk_state != TCP_TIME_WAIT && 53 sock_i_uid((struct sock *)sk2))))) { [all...] |
H A D | inet6_hashtables.c | 257 struct sock *sk2; local 264 sk_nulls_for_each(sk2, node, &head->chain) { 265 if (sk2->sk_hash != hash) 268 if (likely(INET6_MATCH(sk2, net, saddr, daddr, ports, dif))) { 269 if (sk2->sk_state == TCP_TIME_WAIT) { 270 tw = inet_twsk(sk2); 271 if (twsk_unique(sk, sk2, twp))
|
H A D | udp.c | 79 int ipv6_rcv_saddr_equal(const struct sock *sk, const struct sock *sk2) argument 81 const struct in6_addr *sk2_rcv_saddr6 = inet6_rcv_saddr(sk2); 82 int sk2_ipv6only = inet_v6_ipv6only(sk2); 89 (!sk->sk_rcv_saddr || !sk2->sk_rcv_saddr || 90 sk->sk_rcv_saddr == sk2->sk_rcv_saddr));
|
H A D | tcp_ipv6.c | 1519 struct sock *sk2; local 1521 sk2 = inet6_lookup_listener(dev_net(skb->dev), &tcp_hashinfo, 1525 if (sk2 != NULL) { 1529 sk = sk2;
|
/net/ipv4/ |
H A D | inet_connection_sock.c | 48 struct sock *sk2; local 60 sk_for_each_bound(sk2, &tb->owners) { 61 if (sk != sk2 && 62 !inet_v6_ipv6only(sk2) && 64 !sk2->sk_bound_dev_if || 65 sk->sk_bound_dev_if == sk2->sk_bound_dev_if)) { 66 if ((!reuse || !sk2->sk_reuse || 67 sk2->sk_state == TCP_LISTEN) && 68 (!reuseport || !sk2->sk_reuseport || 69 (sk2 [all...] |
H A D | udp.c | 140 const struct sock *sk2), 143 struct sock *sk2; local 147 sk_nulls_for_each(sk2, node, &hslot->head) 148 if (net_eq(sock_net(sk2), net) && 149 sk2 != sk && 150 (bitmap || udp_sk(sk2)->udp_port_hash == num) && 151 (!sk2->sk_reuse || !sk->sk_reuse) && 152 (!sk2->sk_bound_dev_if || !sk->sk_bound_dev_if || 153 sk2->sk_bound_dev_if == sk->sk_bound_dev_if) && 154 (!sk2 135 udp_lib_lport_inuse(struct net *net, __u16 num, const struct udp_hslot *hslot, unsigned long *bitmap, struct sock *sk, int (*saddr_comp)(const struct sock *sk1, const struct sock *sk2), unsigned int log) argument 170 udp_lib_lport_inuse2(struct net *net, __u16 num, struct udp_hslot *hslot2, struct sock *sk, int (*saddr_comp)(const struct sock *sk1, const struct sock *sk2)) argument 176 struct sock *sk2; local 208 udp_lib_get_port(struct sock *sk, unsigned short snum, int (*saddr_comp)(const struct sock *sk1, const struct sock *sk2), unsigned int hash2_nulladdr) argument 312 ipv4_rcv_saddr_equal(const struct sock *sk1, const struct sock *sk2) argument [all...] |
H A D | inet_hashtables.c | 337 struct sock *sk2; local 344 sk_nulls_for_each(sk2, node, &head->chain) { 345 if (sk2->sk_hash != hash) 348 if (likely(INET_MATCH(sk2, net, acookie, 350 if (sk2->sk_state == TCP_TIME_WAIT) { 351 tw = inet_twsk(sk2); 352 if (twsk_unique(sk, sk2, twp))
|
H A D | ping.c | 87 struct sock *sk2 = NULL; local 100 ping_portaddr_for_each_entry(sk2, node, hlist) { 101 isk2 = inet_sk(sk2); 117 ping_portaddr_for_each_entry(sk2, node, hlist) { 118 isk2 = inet_sk(sk2); 125 (sk2 != sk) && 126 (!sk2->sk_reuse || !sk->sk_reuse))
|
H A D | af_inet.c | 682 struct sock *sk2 = sk1->sk_prot->accept(sk1, flags, &err); local 684 if (!sk2) 687 lock_sock(sk2); 689 sock_rps_record_flow(sk2); 690 WARN_ON(!((1 << sk2->sk_state) & 694 sock_graft(sk2, newsock); 698 release_sock(sk2);
|
H A D | tcp_ipv4.c | 1725 struct sock *sk2 = inet_lookup_listener(dev_net(skb->dev), local 1730 if (sk2) { 1733 sk = sk2;
|
/net/netfilter/ |
H A D | xt_TPROXY.c | 262 struct sock *sk2; local 264 sk2 = nf_tproxy_get_sock_v4(dev_net(skb->dev), iph->protocol, 268 if (sk2) { 271 sk = sk2; 425 struct sock *sk2; local 427 sk2 = nf_tproxy_get_sock_v6(dev_net(skb->dev), tproto, 433 if (sk2) { 436 sk = sk2;
|
/net/unix/ |
H A D | af_unix.c | 942 static void unix_state_double_lock(struct sock *sk1, struct sock *sk2) argument 944 if (unlikely(sk1 == sk2) || !sk2) { 948 if (sk1 < sk2) { 950 unix_state_lock_nested(sk2); 952 unix_state_lock(sk2); 957 static void unix_state_double_unlock(struct sock *sk1, struct sock *sk2) argument 959 if (unlikely(sk1 == sk2) || !sk2) { 964 unix_state_unlock(sk2); [all...] |
/net/sctp/ |
H A D | socket.c | 6206 * socket is going to be sk2. 6209 struct sock *sk2; local 6219 * bind_pprev in the struct sock *sk2 (pp->sk)]. On each one, 6227 sk_for_each_bound(sk2, &pp->owner) { 6229 ep2 = sctp_sk(sk2)->ep; 6231 if (sk == sk2 || 6232 (reuse && sk2->sk_reuse && 6233 sk2->sk_state != SCTP_SS_LISTENING)) 6237 sctp_sk(sk2), sctp_sk(sk))) { 6238 ret = (long)sk2; [all...] |