mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
[SCTP] Use ipv6_addr_any() rather than ipv6_addr_type() in sctp_v6_is_any().
Signed-off-by: Brian Haley <[email protected]> Signed-off-by: Sridhar Samudrala <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
047a2428a1
commit
b9b9e10f18
1 changed files with 1 additions and 3 deletions
|
|
@ -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? */
|
||||
|
|
|
|||
Loading…
Reference in a new issue