Skip to content

Commit

Permalink
[SCTP] Use ipv6_addr_any() rather than ipv6_addr_type() in sctp_v6_is…
Browse files Browse the repository at this point in the history
…_any().

Signed-off-by: Brian Haley <Brian.Haley@hp.com>
Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Brian Haley authored and David S. Miller committed Apr 28, 2005
1 parent 047a242 commit b9b9e10
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions net/sctp/ipv6.c
Original file line number Diff line number Diff line change
Expand Up @@ -496,9 +496,7 @@ static void sctp_v6_inaddr_any(union sctp_addr *addr, unsigned short port)
/* Is this a wildcard address? */
static int sctp_v6_is_any(const union sctp_addr *addr)
{
int type;
type = ipv6_addr_type((struct in6_addr *)&addr->v6.sin6_addr);
return IPV6_ADDR_ANY == type;
return ipv6_addr_any(&addr->v6.sin6_addr);
}

/* Should this be available for binding? */
Expand Down

0 comments on commit b9b9e10

Please sign in to comment.