14 #include <linux/types.h>
15 #include <linux/module.h>
34 if (addr_len <
sizeof(*usin))
44 oif = sk->sk_bound_dev_if;
46 if (ipv4_is_multicast(usin->
sin_addr.s_addr)) {
52 fl4 = &inet->
cork.fl.u.ip4;
53 rt = ip_route_connect(fl4, usin->
sin_addr.s_addr, saddr,
71 if (!inet->inet_rcv_saddr) {
72 inet->inet_rcv_saddr = fl4->
saddr;
73 if (sk->sk_prot->rehash)
74 sk->sk_prot->rehash(sk);
76 inet->inet_daddr = fl4->
daddr;
81 sk_dst_set(sk, &rt->
dst);