summaryrefslogtreecommitdiffstats
path: root/net/tipc/msg.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/tipc/msg.h')
-rw-r--r--net/tipc/msg.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/net/tipc/msg.h b/net/tipc/msg.h
index 58bf51541813..024da8af91f0 100644
--- a/net/tipc/msg.h
+++ b/net/tipc/msg.h
@@ -743,16 +743,26 @@ static inline void msg_set_msgcnt(struct tipc_msg *m, u16 n)
743 msg_set_bits(m, 9, 16, 0xffff, n); 743 msg_set_bits(m, 9, 16, 0xffff, n);
744} 744}
745 745
746static inline u32 msg_bcast_tag(struct tipc_msg *m) 746static inline u32 msg_conn_ack(struct tipc_msg *m)
747{ 747{
748 return msg_bits(m, 9, 16, 0xffff); 748 return msg_bits(m, 9, 16, 0xffff);
749} 749}
750 750
751static inline void msg_set_bcast_tag(struct tipc_msg *m, u32 n) 751static inline void msg_set_conn_ack(struct tipc_msg *m, u32 n)
752{ 752{
753 msg_set_bits(m, 9, 16, 0xffff, n); 753 msg_set_bits(m, 9, 16, 0xffff, n);
754} 754}
755 755
756static inline u32 msg_adv_win(struct tipc_msg *m)
757{
758 return msg_bits(m, 9, 0, 0xffff);
759}
760
761static inline void msg_set_adv_win(struct tipc_msg *m, u32 n)
762{
763 msg_set_bits(m, 9, 0, 0xffff, n);
764}
765
756static inline u32 msg_max_pkt(struct tipc_msg *m) 766static inline u32 msg_max_pkt(struct tipc_msg *m)
757{ 767{
758 return msg_bits(m, 9, 16, 0xffff) * 4; 768 return msg_bits(m, 9, 16, 0xffff) * 4;