netdev
[Top] [All Lists]

[PATCH][SCTP] Use ipv6_addr_any rather than ipv6_addr_type in sctp_v6_is

To: davem@xxxxxxxxxxxxx
Subject: [PATCH][SCTP] Use ipv6_addr_any rather than ipv6_addr_type in sctp_v6_is_any().
From: Sridhar Samudrala <sri@xxxxxxxxxx>
Date: Fri, 22 Apr 2005 12:28:56 -0700 (PDT)
Cc: netdev@xxxxxxxxxxx, lksctp-developers@xxxxxxxxxxxxxxxxxxxxx
Sender: netdev-bounce@xxxxxxxxxxx
Hi Dave,

Please apply to 2.6.

Thanks
Sridhar

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

Signed-off-by: Brian Haley <Brian.Haley@xxxxxx>
Signed-off-by: Sridhar Samudrala <sri@xxxxxxxxxx>
=============================================================================
diff -Nru a/net/sctp/ipv6.c b/net/sctp/ipv6.c
--- a/net/sctp/ipv6.c   2005-04-21 16:21:58 -07:00
+++ b/net/sctp/ipv6.c   2005-04-21 16:21:58 -07:00
@@ -496,9 +496,7 @@
 /* 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?   */

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH][SCTP] Use ipv6_addr_any rather than ipv6_addr_type in sctp_v6_is_any()., Sridhar Samudrala <=