Searched refs:sk2 (Results 1 - 13 of 13) sorted by relevance

/net/ipv6/
H A Dinet6_connection_sock.c33 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 Dinet6_hashtables.c249 struct sock *sk2; local
257 sk_nulls_for_each(sk2, node, &head->twchain) {
258 if (sk2->sk_hash != hash)
261 if (likely(INET6_TW_MATCH(sk2, net, saddr, daddr,
263 tw = inet_twsk(sk2);
264 if (twsk_unique(sk, sk2, twp))
273 sk_nulls_for_each(sk2, node, &head->chain) {
274 if (sk2->sk_hash != hash)
276 if (likely(INET6_MATCH(sk2, net, saddr, daddr, ports, dif)))
H A Dudp.c55 int ipv6_rcv_saddr_equal(const struct sock *sk, const struct sock *sk2) argument
58 const struct in6_addr *sk2_rcv_saddr6 = inet6_rcv_saddr(sk2);
60 __be32 sk2_rcv_saddr = sk_rcv_saddr(sk2);
62 int sk2_ipv6only = inet_v6_ipv6only(sk2);
H A Dtcp_ipv6.c1571 struct sock *sk2; local
1573 sk2 = inet6_lookup_listener(dev_net(skb->dev), &tcp_hashinfo,
1577 if (sk2 != NULL) {
1581 sk = sk2;
/net/netfilter/
H A Dxt_TPROXY.c104 struct sock *sk2; local
106 sk2 = nf_tproxy_get_sock_v4(dev_net(skb->dev), iph->protocol,
110 if (sk2) {
113 sk = sk2;
258 struct sock *sk2; local
260 sk2 = nf_tproxy_get_sock_v6(dev_net(skb->dev), tproto,
266 if (sk2) {
269 sk = sk2;
/net/ipv4/
H A Dinet_connection_sock.c59 struct sock *sk2; local
71 sk_for_each_bound(sk2, &tb->owners) {
72 if (sk != sk2 &&
73 !inet_v6_ipv6only(sk2) &&
75 !sk2->sk_bound_dev_if ||
76 sk->sk_bound_dev_if == sk2->sk_bound_dev_if)) {
77 if ((!reuse || !sk2->sk_reuse ||
78 sk2->sk_state == TCP_LISTEN) &&
79 (!reuseport || !sk2->sk_reuseport ||
80 (sk2
[all...]
H A Dinet_hashtables.c327 struct sock *sk2; local
335 sk_nulls_for_each(sk2, node, &head->twchain) {
336 if (sk2->sk_hash != hash)
339 if (likely(INET_TW_MATCH(sk2, net, acookie,
341 tw = inet_twsk(sk2);
342 if (twsk_unique(sk, sk2, twp))
351 sk_nulls_for_each(sk2, node, &head->chain) {
352 if (sk2->sk_hash != hash)
354 if (likely(INET_MATCH(sk2, net, acookie,
H A Dudp.c137 const struct sock *sk2),
140 struct sock *sk2; local
144 sk_nulls_for_each(sk2, node, &hslot->head)
145 if (net_eq(sock_net(sk2), net) &&
146 sk2 != sk &&
147 (bitmap || udp_sk(sk2)->udp_port_hash == num) &&
148 (!sk2->sk_reuse || !sk->sk_reuse) &&
149 (!sk2->sk_bound_dev_if || !sk->sk_bound_dev_if ||
150 sk2->sk_bound_dev_if == sk->sk_bound_dev_if) &&
151 (!sk2
132 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
167 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
173 struct sock *sk2; local
205 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
309 ipv4_rcv_saddr_equal(const struct sock *sk1, const struct sock *sk2) argument
[all...]
H A Dping.c83 struct sock *sk2 = NULL; local
96 ping_portaddr_for_each_entry(sk2, node, hlist) {
97 isk2 = inet_sk(sk2);
113 ping_portaddr_for_each_entry(sk2, node, hlist) {
114 isk2 = inet_sk(sk2);
121 (sk2 != sk) &&
122 (!sk2->sk_reuse || !sk->sk_reuse))
H A Daf_inet.c721 struct sock *sk2 = sk1->sk_prot->accept(sk1, flags, &err); local
723 if (!sk2)
726 lock_sock(sk2);
728 sock_rps_record_flow(sk2);
729 WARN_ON(!((1 << sk2->sk_state) &
733 sock_graft(sk2, newsock);
737 release_sock(sk2);
H A Dtcp_ipv4.c2090 struct sock *sk2 = inet_lookup_listener(dev_net(skb->dev), local
2095 if (sk2) {
2098 sk = sk2;
/net/unix/
H A Daf_unix.c933 static void unix_state_double_lock(struct sock *sk1, struct sock *sk2) argument
935 if (unlikely(sk1 == sk2) || !sk2) {
939 if (sk1 < sk2) {
941 unix_state_lock_nested(sk2);
943 unix_state_lock(sk2);
948 static void unix_state_double_unlock(struct sock *sk1, struct sock *sk2) argument
950 if (unlikely(sk1 == sk2) || !sk2) {
955 unix_state_unlock(sk2);
[all...]
/net/sctp/
H A Dsocket.c5959 * socket is going to be sk2.
5962 struct sock *sk2; local
5971 * bind_pprev in the struct sock *sk2 (pp->sk)]. On each one,
5979 sk_for_each_bound(sk2, &pp->owner) {
5981 ep2 = sctp_sk(sk2)->ep;
5983 if (sk == sk2 ||
5984 (reuse && sk2->sk_reuse &&
5985 sk2->sk_state != SCTP_SS_LISTENING))
5989 sctp_sk(sk2), sctp_sk(sk))) {
5990 ret = (long)sk2;
[all...]

Completed in 534 milliseconds