|
From: Ying X. <yin...@wi...> - 2012-07-03 07:52:46
|
Use the bit 14 in word 5 of LINK_PROTOCOL message header to indicate
whether the new enhanced broadcast synchronization mechanism is
supported.
Signed-off-by: Ying Xue <yin...@wi...>
---
net/tipc/msg.h | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/net/tipc/msg.h b/net/tipc/msg.h
index ba2a72b..c832ae5 100644
--- a/net/tipc/msg.h
+++ b/net/tipc/msg.h
@@ -670,6 +670,16 @@ static inline void msg_set_redundant_link(struct tipc_msg *m, u32 r)
msg_set_bits(m, 5, 12, 0x1, r);
}
+static inline u32 msg_bclink_sync(struct tipc_msg *m)
+{
+ return msg_bits(m, 5, 14, 0x1);
+}
+
+static inline void msg_set_bclink_sync(struct tipc_msg *m, u32 n)
+{
+ msg_set_bits(m, 5, 14, 0x1, n);
+}
+
static inline char *msg_media_addr(struct tipc_msg *m)
{
return (char *)&m->hdr[TIPC_MEDIA_ADDR_OFFSET];
--
1.7.1
|