/linux-2.4.37.9/net/ipv6/ |
D | udp.c | 106 int addr_type = ipv6_addr_type(&sk->net_pinfo.af_inet6.rcv_saddr); in udp_v6_get_port() 116 ((!sk2->rcv_saddr && !ipv6_only_sock(sk)) || in udp_v6_get_port() 118 ipv6_addr_any(&sk2->net_pinfo.af_inet6.rcv_saddr) && in udp_v6_get_port() 122 …!(sk2->family == AF_INET6 ? (ipv6_addr_type(&sk2->net_pinfo.af_inet6.rcv_saddr) == IPV6_ADDR_MAPPE… in udp_v6_get_port() 124 !ipv6_addr_cmp(&sk->net_pinfo.af_inet6.rcv_saddr, in udp_v6_get_port() 125 &sk2->net_pinfo.af_inet6.rcv_saddr)) || in udp_v6_get_port() 128 (!sk2->rcv_saddr || in udp_v6_get_port() 129 !sk->rcv_saddr || in udp_v6_get_port() 130 sk->rcv_saddr == sk2->rcv_saddr))) && in udp_v6_get_port() 192 if(!ipv6_addr_any(&np->rcv_saddr)) { in udp_v6_lookup() [all …]
|
D | tcp_ipv6.c | 81 struct in6_addr *laddr = &sk->net_pinfo.af_inet6.rcv_saddr; in tcp_v6_sk_hashfn() 144 int addr_type = ipv6_addr_type(&sk->net_pinfo.af_inet6.rcv_saddr); in tcp_v6_get_port() 156 if ((!sk2->rcv_saddr && !ipv6_only_sock(sk)) || in tcp_v6_get_port() 158 ipv6_addr_any(&sk2->net_pinfo.af_inet6.rcv_saddr) && in tcp_v6_get_port() 162 …!(sk2->family == AF_INET6 ? ipv6_addr_type(&sk2->net_pinfo.af_inet6.rcv_saddr) == IPV6_ADDR_MAPPED… in tcp_v6_get_port() 164 !ipv6_addr_cmp(&sk->net_pinfo.af_inet6.rcv_saddr, in tcp_v6_get_port() 166 &sk2->net_pinfo.af_inet6.rcv_saddr : in tcp_v6_get_port() 170 (!sk2->rcv_saddr || in tcp_v6_get_port() 171 !sk->rcv_saddr || in tcp_v6_get_port() 172 sk->rcv_saddr == sk2->rcv_saddr))) in tcp_v6_get_port() [all …]
|
D | af_inet6.c | 301 sk->rcv_saddr = v4addr; in inet6_bind() 304 ipv6_addr_copy(&sk->net_pinfo.af_inet6.rcv_saddr, &addr->sin6_addr); in inet6_bind() 311 sk->rcv_saddr = 0; in inet6_bind() 313 memset(&sk->net_pinfo.af_inet6.rcv_saddr, 0, sizeof(struct in6_addr)); in inet6_bind() 399 if (ipv6_addr_type(&sk->net_pinfo.af_inet6.rcv_saddr) == IPV6_ADDR_ANY) in inet6_getname() 405 &sk->net_pinfo.af_inet6.rcv_saddr, in inet6_getname()
|
D | raw.c | 96 if (!ipv6_addr_any(&np->rcv_saddr)) { in __raw_v6_lookup() 97 if (ipv6_addr_cmp(&np->rcv_saddr, loc_addr) == 0) in __raw_v6_lookup() 237 sk->rcv_saddr = v4addr; in rawv6_bind() 239 ipv6_addr_copy(&sk->net_pinfo.af_inet6.rcv_saddr, &addr->sin6_addr); in rawv6_bind() 847 src = &sp->net_pinfo.af_inet6.rcv_saddr; in get_raw6_sock()
|
/linux-2.4.37.9/net/ipv4/ |
D | udp.c | 170 (!sk2->rcv_saddr || in udp_v4_get_port() 171 !sk->rcv_saddr || in udp_v4_get_port() 172 sk2->rcv_saddr == sk->rcv_saddr) && in udp_v4_get_port() 232 if(sk->rcv_saddr) { in udp_v4_lookup_longway() 233 if(sk->rcv_saddr != daddr) in udp_v4_lookup_longway() 289 (s->rcv_saddr && s->rcv_saddr != loc_addr) || in udp_v4_mcast_next() 819 if(!sk->rcv_saddr) in udp_connect() 820 sk->rcv_saddr = rt->rt_src; in udp_connect() 841 sk->rcv_saddr = 0; in udp_disconnect() 845 memset(&sk->net_pinfo.af_inet6.rcv_saddr, 0, 16); in udp_disconnect() [all …]
|
D | tcp_ipv4.c | 121 __u32 laddr = sk->rcv_saddr; in tcp_sk_hashfn() 198 if (!sk2->rcv_saddr || in tcp_bind_conflict() 199 !sk->rcv_saddr || in tcp_bind_conflict() 200 (sk2->rcv_saddr == sk->rcv_saddr)) in tcp_bind_conflict() 433 __u32 rcv_saddr = sk->rcv_saddr; in __tcp_v4_lookup_listener() local 440 if(rcv_saddr) { in __tcp_v4_lookup_listener() 441 if (rcv_saddr != daddr) in __tcp_v4_lookup_listener() 471 (!sk->rcv_saddr || sk->rcv_saddr == daddr) && in tcp_v4_lookup_listener() 561 u32 daddr = sk->rcv_saddr; in __tcp_v4_check_established() 805 sk->rcv_saddr = sk->saddr; in tcp_v4_connect() [all …]
|
D | raw.c | 108 !(s->rcv_saddr && s->rcv_saddr != laddr) && in __raw_v4_lookup() 471 sk->rcv_saddr = sk->saddr = addr->sin_addr.s_addr; in raw_bind() 631 src = sp->rcv_saddr; in get_raw_sock()
|
D | tcp_diag.c | 74 r->id.tcpdiag_src[0] = sk->rcv_saddr; in tcpdiag_fill() 105 memcpy(r->id.tcpdiag_src, &sk->net_pinfo.af_inet6.rcv_saddr, 16); in tcpdiag_fill() 354 addr = (u32*)&sk->net_pinfo.af_inet6.rcv_saddr; in tcpdiag_bc_run() 361 addr = &sk->rcv_saddr; in tcpdiag_bc_run()
|
D | af_inet.c | 524 sk->rcv_saddr = sk->saddr = addr->sin_addr.s_addr; in inet_bind() 530 sk->saddr = sk->rcv_saddr = 0; in inet_bind() 535 if (sk->rcv_saddr) in inet_bind() 721 __u32 addr = sk->rcv_saddr; in inet_getname()
|
D | tcp_minisocks.c | 363 tw->rcv_saddr = sk->rcv_saddr; in tcp_time_wait() 389 &sk->net_pinfo.af_inet6.rcv_saddr, in tcp_time_wait()
|
D | ip_sockglue.c | 1024 info.ipi_addr.s_addr = sk->rcv_saddr; in ip_getsockopt() 1025 info.ipi_spec_dst.s_addr = sk->rcv_saddr; in ip_getsockopt()
|
D | tcp.c | 2117 sk->rcv_saddr = 0; in tcp_disconnect() 2121 memset(&sk->net_pinfo.af_inet6.rcv_saddr, 0, 16); in tcp_disconnect()
|
/linux-2.4.37.9/net/sctp/ |
D | ipv6.c | 394 addr->v6.sin6_addr = inet6_sk(sk)->rcv_saddr; in sctp_v6_from_sk() 401 inet6_sk(sk)->rcv_saddr.s6_addr32[0] = 0; in sctp_v6_to_sk_saddr() 402 inet6_sk(sk)->rcv_saddr.s6_addr32[1] = 0; in sctp_v6_to_sk_saddr() 403 inet6_sk(sk)->rcv_saddr.s6_addr32[2] = htonl(0x0000ffff); in sctp_v6_to_sk_saddr() 404 inet6_sk(sk)->rcv_saddr.s6_addr32[3] = in sctp_v6_to_sk_saddr() 407 inet6_sk(sk)->rcv_saddr = addr->v6.sin6_addr; in sctp_v6_to_sk_saddr() 636 newnp->rcv_saddr = np->rcv_saddr; in sctp_v6_create_accept_sk()
|
D | protocol.c | 282 addr->v4.sin_addr.s_addr = sk->rcv_saddr; in sctp_v4_from_sk() 288 sk->rcv_saddr = addr->v4.sin_addr.s_addr; in sctp_v4_to_sk_saddr() 584 newsk->rcv_saddr = sk->rcv_saddr; in sctp_v4_create_accept_sk()
|
/linux-2.4.37.9/include/net/ |
D | sock.h | 149 struct in6_addr rcv_saddr; member 560 __u32 rcv_saddr; /* Bound local IPv4 addr */ member
|
D | tcp.h | 161 __u32 rcv_saddr; member 241 ((__sk)->rcv_saddr == (__daddr)) && \ 250 !ipv6_addr_cmp(&(__sk)->net_pinfo.af_inet6.rcv_saddr, (__daddr)) && \
|
/linux-2.4.37.9/net/ipv4/netfilter/ |
D | ip_conntrack_core.c | 1325 tuple.src.ip = sk->rcv_saddr; in getorigdst()
|