mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Joe Perches <joe@perches.com>
To: netdev@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH net-next 21/21] sctp: Convert ipv4_is_<foo> uses to ipv4_addr_<foo>
Date: Thu, 18 Oct 2012 21:15:05 -0700	[thread overview]
Message-ID: <1c35a1d3e2c8e20fe3dbdfa86fa156420fb3b461.1350618012.git.joe@perches.com> (raw)
In-Reply-To: <cover.1350618006.git.joe@perches.com>

Use the new ipv4_addr_<foo> functions to be consistent with
the ipv6_addr_<foo> and eth_addr_<foo> style.

Signed-off-by: Joe Perches <joe@perches.com>
---
 include/net/sctp/constants.h |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/include/net/sctp/constants.h b/include/net/sctp/constants.h
index d053d2e..31bae2f 100644
--- a/include/net/sctp/constants.h
+++ b/include/net/sctp/constants.h
@@ -365,12 +365,12 @@ typedef enum {
  * Also, RFC 8.4, non-unicast addresses are not considered valid SCTP
  * addresses.
  */
-#define IS_IPV4_UNUSABLE_ADDRESS(a)	    \
-	((htonl(INADDR_BROADCAST) == a) ||  \
-	 ipv4_is_multicast(a) ||	    \
-	 ipv4_is_zeronet(a) ||		    \
-	 ipv4_is_test_198(a) ||		    \
-	 ipv4_is_anycast_6to4(a))
+#define IS_IPV4_UNUSABLE_ADDRESS(a)		    \
+	((htonl(INADDR_BROADCAST) == a) ||	    \
+	 ipv4_addr_multicast(a) ||		    \
+	 ipv4_addr_zeronet(a) ||		    \
+	 ipv4_addr_test_198(a) ||		    \
+	 ipv4_addr_anycast_6to4(a))
 
 /* Flags used for the bind address copy functions.  */
 #define SCTP_ADDR6_ALLOWED	0x00000001	/* IPv6 address is allowed by
-- 
1.7.8.111.gad25c.dirty


  parent reply	other threads:[~2012-10-19  4:16 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-19  3:55 [PATCH net-next 00/21] treewide: Use consistent api style for address testing Joe Perches
2012-10-19  3:55 ` [PATCH net-next 01/21] etherdevice: Rename is_<foo>_ether_addr tests to eth_addr_<foo> Joe Perches
2012-10-19  3:55 ` [PATCH net-next 02/21] net: Convert is_<foo>_ether_addr uses " Joe Perches
2012-10-19  3:55 ` [PATCH net-next 03/21] arch: " Joe Perches
2012-10-19  3:55 ` [PATCH net-next 04/21] wireless: " Joe Perches
2012-10-20  2:30   ` Bing Zhao
2012-10-20 16:19   ` Arend van Spriel
2012-10-19  4:14 ` [PATCH net-next 05/21] drivers: net: " Joe Perches
2012-10-19  4:14 ` [PATCH net-next 06/21] staging: " Joe Perches
2012-10-19  4:14 ` [PATCH net-next 07/21] infiniband: " Joe Perches
2012-10-19  4:14 ` [PATCH net-next 08/21] scsi: " Joe Perches
2012-10-19  4:14 ` [PATCH net-next 09/21] of: " Joe Perches
2012-10-19  4:14 ` [PATCH net-next 10/21] s390: " Joe Perches
2012-10-19  4:14 ` [PATCH net-next 11/21] usb: " Joe Perches
2012-10-19  4:14 ` [PATCH net-next 12/21] uwb: " Joe Perches
2012-10-19  4:14 ` [PATCH net-next 13/21] Documentation: networking: " Joe Perches
2012-10-19  4:14 ` [PATCH net-next 14/21] llc_if.h: " Joe Perches
2012-10-19  4:14 ` [PATCH net-next 15/21] in.h: Rename ipv4_is_<foo> functions to ipv4_addr_<foo> Joe Perches
2012-10-19  4:15 ` [PATCH net-next 16/21] net: Convert ipv4_is_<foo> uses " Joe Perches
2012-10-19  4:15 ` [PATCH net-next 17/21] infiniband: " Joe Perches
2012-10-19  4:15 ` [PATCH net-next 18/21] ath6kl: " Joe Perches
2012-10-19  4:15 ` [PATCH net-next 19/21] parisc: " Joe Perches
2012-10-19  4:15 ` [PATCH net-next 20/21] lockd: " Joe Perches
2012-10-19  4:15 ` Joe Perches [this message]
     [not found] ` <1350630254.2293.183.camel@edumazet-glaptop>
2012-10-19 10:29   ` [PATCH net-next 00/21] treewide: Use consistent api style for address testing Joe Perches
     [not found]   ` <20121019115517.7b8514a8@mj>
2012-10-19 16:39     ` [ath9k-devel] " Joe Perches

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1c35a1d3e2c8e20fe3dbdfa86fa156420fb3b461.1350618012.git.joe@perches.com \
    --to=joe@perches.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®