summaryrefslogtreecommitdiff
path: root/include/linux/pim.h
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2009-02-15 09:58:35 +0300
committerDavid S. Miller <davem@davemloft.net>2009-02-15 09:58:35 +0300
commitf3a7c66b5ce0b75a9774a50b5dcce93e5ba28370 (patch)
tree441f02ac10cb109cbb80fbd0d964af3638541f06 /include/linux/pim.h
parent35c26c2cf6a6a2d1c48add732d8ba002bd90784c (diff)
downloadlinux-f3a7c66b5ce0b75a9774a50b5dcce93e5ba28370.tar.xz
net: replace __constant_{endian} uses in net headers
Base versions handle constant folding now. For headers exposed to userspace, we must only expose the __ prefixed versions. Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/pim.h')
-rw-r--r--include/linux/pim.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/pim.h b/include/linux/pim.h
index 1ba0661561a4..252bf6644c51 100644
--- a/include/linux/pim.h
+++ b/include/linux/pim.h
@@ -4,14 +4,14 @@
#include <asm/byteorder.h>
/* Message types - V1 */
-#define PIM_V1_VERSION __constant_htonl(0x10000000)
+#define PIM_V1_VERSION cpu_to_be32(0x10000000)
#define PIM_V1_REGISTER 1
/* Message types - V2 */
#define PIM_VERSION 2
#define PIM_REGISTER 1
-#define PIM_NULL_REGISTER __constant_htonl(0x40000000)
+#define PIM_NULL_REGISTER cpu_to_be32(0x40000000)
/* PIMv2 register message header layout (ietf-draft-idmr-pimvsm-v2-00.ps */
struct pimreghdr