diff options
Diffstat (limited to 'net/tipc/msg.h')
-rw-r--r-- | net/tipc/msg.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/net/tipc/msg.h b/net/tipc/msg.h index c3832cdf2278..50a739860d37 100644 --- a/net/tipc/msg.h +++ b/net/tipc/msg.h | |||
@@ -714,6 +714,23 @@ static inline void msg_set_peer_stopping(struct tipc_msg *m, u32 s) | |||
714 | msg_set_bits(m, 5, 13, 0x1, s); | 714 | msg_set_bits(m, 5, 13, 0x1, s); |
715 | } | 715 | } |
716 | 716 | ||
717 | static inline bool msg_bc_ack_invalid(struct tipc_msg *m) | ||
718 | { | ||
719 | switch (msg_user(m)) { | ||
720 | case BCAST_PROTOCOL: | ||
721 | case NAME_DISTRIBUTOR: | ||
722 | case LINK_PROTOCOL: | ||
723 | return msg_bits(m, 5, 14, 0x1); | ||
724 | default: | ||
725 | return false; | ||
726 | } | ||
727 | } | ||
728 | |||
729 | static inline void msg_set_bc_ack_invalid(struct tipc_msg *m, bool invalid) | ||
730 | { | ||
731 | msg_set_bits(m, 5, 14, 0x1, invalid); | ||
732 | } | ||
733 | |||
717 | static inline char *msg_media_addr(struct tipc_msg *m) | 734 | static inline char *msg_media_addr(struct tipc_msg *m) |
718 | { | 735 | { |
719 | return (char *)&m->hdr[TIPC_MEDIA_INFO_OFFSET]; | 736 | return (char *)&m->hdr[TIPC_MEDIA_INFO_OFFSET]; |