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 7cf52fb39bee..c3832cdf2278 100644
--- a/net/tipc/msg.h
+++ b/net/tipc/msg.h
@@ -719,6 +719,16 @@ static inline char *msg_media_addr(struct tipc_msg *m)
719 return (char *)&m->hdr[TIPC_MEDIA_INFO_OFFSET]; 719 return (char *)&m->hdr[TIPC_MEDIA_INFO_OFFSET];
720} 720}
721 721
722static inline u32 msg_bc_gap(struct tipc_msg *m)
723{
724 return msg_bits(m, 8, 0, 0x3ff);
725}
726
727static inline void msg_set_bc_gap(struct tipc_msg *m, u32 n)
728{
729 msg_set_bits(m, 8, 0, 0x3ff, n);
730}
731
722/* 732/*
723 * Word 9 733 * Word 9
724 */ 734 */