diff options
author | Brian Haley <Brian.Haley@hp.com> | 2005-04-28 20:59:16 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-04-28 20:59:16 +0200 |
commit | b9b9e10f180fa63b55b93412edf0ab9648675646 (patch) | |
tree | f7c076d76280f292d76344eaefb3250b80c57697 /net/sctp | |
parent | [SCTP] Implement Sec 2.41 of SCTP Implementers guide. (diff) | |
download | linux-b9b9e10f180fa63b55b93412edf0ab9648675646.tar.xz linux-b9b9e10f180fa63b55b93412edf0ab9648675646.zip |
[SCTP] Use ipv6_addr_any() rather than ipv6_addr_type() in sctp_v6_is_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>
Diffstat (limited to 'net/sctp')
-rw-r--r-- | net/sctp/ipv6.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/sctp/ipv6.c b/net/sctp/ipv6.c index e42c74e3ec1e..c9d9ea064734 100644 --- a/net/sctp/ipv6.c +++ b/net/sctp/ipv6.c @@ -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? */ |