/net/ipv4/ |
D | datagram.c | 65 if (!inet->rcv_saddr) in ip4_datagram_connect() 66 inet->rcv_saddr = rt->rt_src; in ip4_datagram_connect()
|
D | inet_hashtables.c | 122 __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()
|
D | udp.c | 230 (!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()
|
D | af_inet.c | 516 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()
|
D | inet_diag.c | 121 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()
|
D | raw.c | 120 !(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()
|
D | inet_timewait_sock.c | 122 tw->tw_rcv_saddr = inet->rcv_saddr; in inet_twsk_alloc()
|
D | tcp_ipv4.c | 188 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()
|
D | ip_sockglue.c | 1166 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()
|
D | tcp_minisocks.c | 304 ipv6_addr_copy(&tw6->tw_v6_rcv_saddr, &np->rcv_saddr); in tcp_time_wait()
|
/net/ipv6/ |
D | inet6_hashtables.c | 133 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()
|
D | datagram.c | 108 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()
|
D | tcp_ipv6.c | 231 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()
|
D | udp.c | 76 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()
|
D | raw.c | 88 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()
|
D | af_inet6.c | 344 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()
|
D | addrconf.c | 1372 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/ |
D | ipv6.c | 423 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()
|
D | protocol.c | 302 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/ |
D | ipv6.c | 517 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()
|
D | minisocks.c | 68 ipv6_addr_copy(&tw6->tw_v6_rcv_saddr, &np->rcv_saddr); in dccp_time_wait()
|
D | ipv4.c | 82 inet->rcv_saddr = inet->saddr; in dccp_v4_connect() 397 newinet->rcv_saddr = ireq->loc_addr; in dccp_v4_request_recv_sock()
|
/net/netfilter/ |
D | xt_socket.c | 144 bool wildcard = (sk->sk_state != TCP_TIME_WAIT && inet_sk(sk)->rcv_saddr == 0); in socket_mt()
|
/net/ipv4/netfilter/ |
D | nf_conntrack_l3proto_ipv4.c | 252 tuple.src.u3.ip = inet->rcv_saddr; in getorigdst()
|
/net/sunrpc/ |
D | svcsock.c | 252 &inet_sk(svsk->sk_sk)->rcv_saddr, in one_sock_name()
|