diff options
author | Allan Stephens <allan.stephens@windriver.com> | 2011-05-31 15:03:18 -0400 |
---|---|---|
committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2011-06-24 16:18:17 -0400 |
commit | 741d9eb7b8f352071f56aacb77f5245b4e2a4fbe (patch) | |
tree | 34cdd6f8ab360e781e9bd4c6b2b8aeefb233bfa5 /net/tipc/msg.h | |
parent | 15f4e2b30372695573bc46102790094a92b3eb11 (diff) | |
download | linux-3.10-741d9eb7b8f352071f56aacb77f5245b4e2a4fbe.tar.gz linux-3.10-741d9eb7b8f352071f56aacb77f5245b4e2a4fbe.tar.bz2 linux-3.10-741d9eb7b8f352071f56aacb77f5245b4e2a4fbe.zip |
tipc: Cleanup of message header size terminology
Performs cosmetic cleanup of the symbolic names used to specify TIPC
payload message header sizes. The revised names now more accurately
reflect the payload messages in which they can appear. In addition,
several places where these payload message symbol names were being used
to create non-payload messages have been updated to use the proper
internal message symbolic name.
No functional changes are introduced by this rework.
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'net/tipc/msg.h')
-rw-r--r-- | net/tipc/msg.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/tipc/msg.h b/net/tipc/msg.h index a58975ced22..d93178f2e85 100644 --- a/net/tipc/msg.h +++ b/net/tipc/msg.h @@ -68,10 +68,10 @@ * Message header sizes */ -#define SHORT_H_SIZE 24 /* Connected, in-cluster messages */ -#define DIR_MSG_H_SIZE 32 /* Directly addressed messages */ -#define LONG_H_SIZE 40 /* Named messages */ -#define MCAST_H_SIZE 44 /* Multicast messages */ +#define SHORT_H_SIZE 24 /* In-cluster basic payload message */ +#define BASIC_H_SIZE 32 /* Basic payload message */ +#define NAMED_H_SIZE 40 /* Named payload message */ +#define MCAST_H_SIZE 44 /* Multicast payload message */ #define INT_H_SIZE 40 /* Internal messages */ #define MIN_H_SIZE 24 /* Smallest legal TIPC header size */ #define MAX_H_SIZE 60 /* Largest possible TIPC header size */ @@ -357,7 +357,7 @@ static inline void msg_set_mc_netid(struct tipc_msg *m, u32 p) static inline int msg_short(struct tipc_msg *m) { - return msg_hdr_sz(m) == 24; + return msg_hdr_sz(m) == SHORT_H_SIZE; } static inline u32 msg_orignode(struct tipc_msg *m) |