diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/tipc/addr.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/net/tipc/addr.h b/net/tipc/addr.h index 8971aba99aea..e4f35afe3207 100644 --- a/net/tipc/addr.h +++ b/net/tipc/addr.h | |||
@@ -37,14 +37,17 @@ | |||
37 | #ifndef _TIPC_ADDR_H | 37 | #ifndef _TIPC_ADDR_H |
38 | #define _TIPC_ADDR_H | 38 | #define _TIPC_ADDR_H |
39 | 39 | ||
40 | #define TIPC_ZONE_MASK 0xff000000u | ||
41 | #define TIPC_CLUSTER_MASK 0xfffff000u | ||
42 | |||
40 | static inline u32 tipc_zone_mask(u32 addr) | 43 | static inline u32 tipc_zone_mask(u32 addr) |
41 | { | 44 | { |
42 | return addr & 0xff000000u; | 45 | return addr & TIPC_ZONE_MASK; |
43 | } | 46 | } |
44 | 47 | ||
45 | static inline u32 tipc_cluster_mask(u32 addr) | 48 | static inline u32 tipc_cluster_mask(u32 addr) |
46 | { | 49 | { |
47 | return addr & 0xfffff000u; | 50 | return addr & TIPC_CLUSTER_MASK; |
48 | } | 51 | } |
49 | 52 | ||
50 | static inline int in_own_cluster(u32 addr) | 53 | static inline int in_own_cluster(u32 addr) |