aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/msg.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/tipc/msg.h')
-rw-r--r--net/tipc/msg.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/net/tipc/msg.h b/net/tipc/msg.h
index d7e4b8b93f9d..528ba9241acc 100644
--- a/net/tipc/msg.h
+++ b/net/tipc/msg.h
@@ -257,6 +257,16 @@ static inline void msg_set_src_droppable(struct tipc_msg *m, u32 d)
257 msg_set_bits(m, 0, 18, 1, d); 257 msg_set_bits(m, 0, 18, 1, d);
258} 258}
259 259
260static inline bool msg_is_rcast(struct tipc_msg *m)
261{
262 return msg_bits(m, 0, 18, 0x1);
263}
264
265static inline void msg_set_is_rcast(struct tipc_msg *m, bool d)
266{
267 msg_set_bits(m, 0, 18, 0x1, d);
268}
269
260static inline void msg_set_size(struct tipc_msg *m, u32 sz) 270static inline void msg_set_size(struct tipc_msg *m, u32 sz)
261{ 271{
262 m->hdr[0] = htonl((msg_word(m, 0) & ~0x1ffff) | sz); 272 m->hdr[0] = htonl((msg_word(m, 0) & ~0x1ffff) | sz);