[IPV4] net/ipv4: Use ipv4_is_<type>
Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
21cf2253eb
commit
f97c1e0c6e
@@ -40,7 +40,7 @@ int ip4_datagram_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len)
|
||||
|
||||
oif = sk->sk_bound_dev_if;
|
||||
saddr = inet->saddr;
|
||||
if (MULTICAST(usin->sin_addr.s_addr)) {
|
||||
if (ipv4_is_multicast(usin->sin_addr.s_addr)) {
|
||||
if (!oif)
|
||||
oif = inet->mc_index;
|
||||
if (!saddr)
|
||||
|
Reference in New Issue
Block a user