]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - net/tipc/msg.h
tipc: guarantee peer bearer id exchange after reboot
[karo-tx-linux.git] / net / tipc / msg.h
index f34f639df6435fc222e6118b108b6711c190ee6c..58bf515418132a8aa46286849665856bafcde5b4 100644 (file)
@@ -715,6 +715,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_peer_stopping(struct tipc_msg *m)
+{
+       return msg_bits(m, 5, 13, 0x1);
+}
+
+static inline void msg_set_peer_stopping(struct tipc_msg *m, u32 s)
+{
+       msg_set_bits(m, 5, 13, 0x1, s);
+}
+
 static inline char *msg_media_addr(struct tipc_msg *m)
 {
        return (char *)&m->hdr[TIPC_MEDIA_INFO_OFFSET];