Home
last modified time | relevance | path

Searched refs:rcv_saddr (Results 1 – 25 of 25) sorted by relevance

/net/ipv4/
Ddatagram.c65 if (!inet->rcv_saddr) in ip4_datagram_connect()
66 inet->rcv_saddr = rt->rt_src; in ip4_datagram_connect()
Dinet_hashtables.c122 __be32 rcv_saddr = inet->rcv_saddr; in compute_score() local
124 if (rcv_saddr) { in compute_score()
125 if (rcv_saddr != daddr) in compute_score()
267 __be32 daddr = inet->rcv_saddr; in __inet_check_established()
335 return secure_ipv4_port_ephemeral(inet->rcv_saddr, inet->daddr, in inet_sk_port_offset()
Dudp.c230 (!inet1->rcv_saddr || !inet2->rcv_saddr || in ipv4_rcv_saddr_equal()
231 inet1->rcv_saddr == inet2->rcv_saddr )); in ipv4_rcv_saddr_equal()
250 if (inet->rcv_saddr) { in compute_score()
251 if (inet->rcv_saddr != daddr) in compute_score()
359 (inet->rcv_saddr && inet->rcv_saddr != loc_addr) || in udp_v4_mcast_next()
1709 __be32 src = inet->rcv_saddr; in udp4_format_sock()
Daf_inet.c516 inet->rcv_saddr = inet->saddr = addr->sin_addr.s_addr; in inet_bind()
522 inet->saddr = inet->rcv_saddr = 0; in inet_bind()
527 if (inet->rcv_saddr) in inet_bind()
711 __be32 addr = inet->rcv_saddr; in inet_getname()
1096 inet->saddr = inet->rcv_saddr = new_saddr; in inet_sk_reselect_saddr()
Dinet_diag.c121 r->id.idiag_src[0] = inet->rcv_saddr; in inet_csk_diag_fill()
129 &np->rcv_saddr); in inet_csk_diag_fill()
504 entry.saddr = np->rcv_saddr.s6_addr32; in inet_csk_diag_dump()
509 entry.saddr = &inet->rcv_saddr; in inet_csk_diag_dump()
Draw.c120 !(inet->rcv_saddr && inet->rcv_saddr != laddr) && in __raw_v4_lookup()
632 inet->rcv_saddr = inet->saddr = addr->sin_addr.s_addr; in raw_bind()
930 src = inet->rcv_saddr; in raw_sock_seq_show()
Dinet_timewait_sock.c122 tw->tw_rcv_saddr = inet->rcv_saddr; in inet_twsk_alloc()
Dtcp_ipv4.c188 inet->rcv_saddr = inet->saddr; in tcp_v4_connect()
1353 newinet->rcv_saddr = ireq->loc_addr; in tcp_v4_syn_recv_sock()
1873 if (inet->rcv_saddr != saddr) in tcp_v4_nuke_addr()
2264 __be32 src = inet->rcv_saddr; in get_tcp4_sock()
Dip_sockglue.c1166 info.ipi_addr.s_addr = inet->rcv_saddr; in do_ip_getsockopt()
1167 info.ipi_spec_dst.s_addr = inet->rcv_saddr; in do_ip_getsockopt()
Dtcp_minisocks.c304 ipv6_addr_copy(&tw6->tw_v6_rcv_saddr, &np->rcv_saddr); in tcp_time_wait()
/net/ipv6/
Dinet6_hashtables.c133 if (!ipv6_addr_any(&np->rcv_saddr)) { in compute_score()
134 if (!ipv6_addr_equal(&np->rcv_saddr, daddr)) in compute_score()
214 const struct in6_addr *daddr = &np->rcv_saddr; in __inet6_check_established()
280 return secure_ipv6_port_ephemeral(np->rcv_saddr.s6_addr32, in inet6_sk_port_offset()
Ddatagram.c108 if (ipv6_addr_any(&np->rcv_saddr)) { in ip6_datagram_connect()
109 ipv6_addr_set(&np->rcv_saddr, 0, 0, htonl(0x0000ffff), in ip6_datagram_connect()
110 inet->rcv_saddr); in ip6_datagram_connect()
191 if (ipv6_addr_any(&np->rcv_saddr)) { in ip6_datagram_connect()
192 ipv6_addr_copy(&np->rcv_saddr, &fl.fl6_src); in ip6_datagram_connect()
193 inet->rcv_saddr = LOOPBACK4_IPV6; in ip6_datagram_connect()
Dtcp_ipv6.c231 ipv6_addr_set(&np->rcv_saddr, 0, 0, htonl(0x0000FFFF), in tcp_v6_connect()
232 inet->rcv_saddr); in tcp_v6_connect()
238 if (!ipv6_addr_any(&np->rcv_saddr)) in tcp_v6_connect()
239 saddr = &np->rcv_saddr; in tcp_v6_connect()
274 ipv6_addr_copy(&np->rcv_saddr, saddr); in tcp_v6_connect()
279 inet->rcv_saddr = LOOPBACK4_IPV6; in tcp_v6_connect()
1297 ipv6_addr_copy(&newnp->rcv_saddr, &newnp->saddr); in tcp_v6_syn_recv_sock()
1384 ipv6_addr_copy(&newnp->rcv_saddr, &treq->loc_addr); in tcp_v6_syn_recv_sock()
1432 newinet->daddr = newinet->saddr = newinet->rcv_saddr = LOOPBACK4_IPV6; in tcp_v6_syn_recv_sock()
1932 src = &np->rcv_saddr; in get_tcp6_sock()
Dudp.c76 if (!ipv6_addr_any(&np->rcv_saddr)) { in compute_score()
77 if (!ipv6_addr_equal(&np->rcv_saddr, daddr)) in compute_score()
402 if (!ipv6_addr_any(&np->rcv_saddr)) { in udp_v6_mcast_next()
403 if (!ipv6_addr_equal(&np->rcv_saddr, loc_addr)) in udp_v6_mcast_next()
1021 src = &np->rcv_saddr; in udp6_sock_seq_show()
Draw.c88 if (!ipv6_addr_any(&np->rcv_saddr)) { in __raw_v6_lookup()
89 if (ipv6_addr_equal(&np->rcv_saddr, loc_addr)) in __raw_v6_lookup()
301 inet->rcv_saddr = inet->saddr = v4addr; in rawv6_bind()
302 ipv6_addr_copy(&np->rcv_saddr, &addr->sin6_addr); in rawv6_bind()
1227 src = &np->rcv_saddr; in raw6_sock_seq_show()
Daf_inet6.c344 inet->rcv_saddr = v4addr; in inet6_bind()
347 ipv6_addr_copy(&np->rcv_saddr, &addr->sin6_addr); in inet6_bind()
439 if (ipv6_addr_any(&np->rcv_saddr)) in inet6_getname()
442 ipv6_addr_copy(&sin->sin6_addr, &np->rcv_saddr); in inet6_getname()
Daddrconf.c1372 const struct in6_addr *sk_rcv_saddr6 = &inet6_sk(sk)->rcv_saddr; in ipv6_rcv_saddr_equal()
1374 __be32 sk_rcv_saddr = inet_sk(sk)->rcv_saddr; in ipv6_rcv_saddr_equal()
/net/sctp/
Dipv6.c423 addr->v6.sin6_addr = inet6_sk(sk)->rcv_saddr; in sctp_v6_from_sk()
430 inet6_sk(sk)->rcv_saddr.s6_addr32[0] = 0; in sctp_v6_to_sk_saddr()
431 inet6_sk(sk)->rcv_saddr.s6_addr32[1] = 0; in sctp_v6_to_sk_saddr()
432 inet6_sk(sk)->rcv_saddr.s6_addr32[2] = htonl(0x0000ffff); in sctp_v6_to_sk_saddr()
433 inet6_sk(sk)->rcv_saddr.s6_addr32[3] = in sctp_v6_to_sk_saddr()
436 inet6_sk(sk)->rcv_saddr = addr->v6.sin6_addr; in sctp_v6_to_sk_saddr()
671 newnp->rcv_saddr = np->rcv_saddr; in sctp_v6_create_accept_sk()
Dprotocol.c302 addr->v4.sin_addr.s_addr = inet_sk(sk)->rcv_saddr; in sctp_v4_from_sk()
308 inet_sk(sk)->rcv_saddr = addr->v4.sin_addr.s_addr; in sctp_v4_to_sk_saddr()
621 newinet->rcv_saddr = inet->rcv_saddr; in sctp_v4_create_accept_sk()
/net/dccp/
Dipv6.c517 ipv6_addr_copy(&newnp->rcv_saddr, &newnp->saddr); in dccp_v6_request_recv_sock()
599 ipv6_addr_copy(&newnp->rcv_saddr, &ireq6->loc_addr); in dccp_v6_request_recv_sock()
643 newinet->daddr = newinet->saddr = newinet->rcv_saddr = LOOPBACK4_IPV6; in dccp_v6_request_recv_sock()
974 ipv6_addr_set(&np->rcv_saddr, 0, 0, htonl(0x0000FFFF), in dccp_v6_connect()
975 inet->rcv_saddr); in dccp_v6_connect()
981 if (!ipv6_addr_any(&np->rcv_saddr)) in dccp_v6_connect()
982 saddr = &np->rcv_saddr; in dccp_v6_connect()
1017 ipv6_addr_copy(&np->rcv_saddr, saddr); in dccp_v6_connect()
1022 inet->rcv_saddr = LOOPBACK4_IPV6; in dccp_v6_connect()
Dminisocks.c68 ipv6_addr_copy(&tw6->tw_v6_rcv_saddr, &np->rcv_saddr); in dccp_time_wait()
Dipv4.c82 inet->rcv_saddr = inet->saddr; in dccp_v4_connect()
397 newinet->rcv_saddr = ireq->loc_addr; in dccp_v4_request_recv_sock()
/net/netfilter/
Dxt_socket.c144 bool wildcard = (sk->sk_state != TCP_TIME_WAIT && inet_sk(sk)->rcv_saddr == 0); in socket_mt()
/net/ipv4/netfilter/
Dnf_conntrack_l3proto_ipv4.c252 tuple.src.u3.ip = inet->rcv_saddr; in getorigdst()
/net/sunrpc/
Dsvcsock.c252 &inet_sk(svsk->sk_sk)->rcv_saddr, in one_sock_name()