Commit b9b9e10f authored by Brian Haley's avatar Brian Haley Committed by David S. Miller

[SCTP] Use ipv6_addr_any() rather than ipv6_addr_type() in sctp_v6_is_any().

Signed-off-by: default avatarBrian Haley <Brian.Haley@hp.com>
Signed-off-by: default avatarSridhar Samudrala <sri@us.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 047a2428
...@@ -496,9 +496,7 @@ static void sctp_v6_inaddr_any(union sctp_addr *addr, unsigned short port) ...@@ -496,9 +496,7 @@ static void sctp_v6_inaddr_any(union sctp_addr *addr, unsigned short port)
/* Is this a wildcard address? */ /* Is this a wildcard address? */
static int sctp_v6_is_any(const union sctp_addr *addr) static int sctp_v6_is_any(const union sctp_addr *addr)
{ {
int type; return ipv6_addr_any(&addr->v6.sin6_addr);
type = ipv6_addr_type((struct in6_addr *)&addr->v6.sin6_addr);
return IPV6_ADDR_ANY == type;
} }
/* Should this be available for binding? */ /* Should this be available for binding? */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment