diff options
Diffstat (limited to 'net/tipc/msg.h')
| -rw-r--r-- | net/tipc/msg.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/net/tipc/msg.h b/net/tipc/msg.h index 7b0cda167107..eba524e34a6b 100644 --- a/net/tipc/msg.h +++ b/net/tipc/msg.h | |||
| @@ -384,11 +384,6 @@ static inline void msg_set_destnode(struct tipc_msg *m, u32 a) | |||
| 384 | msg_set_word(m, 7, a); | 384 | msg_set_word(m, 7, a); |
| 385 | } | 385 | } |
| 386 | 386 | ||
| 387 | static inline int msg_is_dest(struct tipc_msg *m, u32 d) | ||
| 388 | { | ||
| 389 | return msg_short(m) || (msg_destnode(m) == d); | ||
| 390 | } | ||
| 391 | |||
| 392 | static inline u32 msg_nametype(struct tipc_msg *m) | 387 | static inline u32 msg_nametype(struct tipc_msg *m) |
| 393 | { | 388 | { |
| 394 | return msg_word(m, 8); | 389 | return msg_word(m, 8); |
| @@ -517,6 +512,16 @@ static inline void msg_set_seq_gap(struct tipc_msg *m, u32 n) | |||
| 517 | msg_set_bits(m, 1, 16, 0x1fff, n); | 512 | msg_set_bits(m, 1, 16, 0x1fff, n); |
| 518 | } | 513 | } |
| 519 | 514 | ||
| 515 | static inline u32 msg_node_sig(struct tipc_msg *m) | ||
| 516 | { | ||
| 517 | return msg_bits(m, 1, 0, 0xffff); | ||
| 518 | } | ||
| 519 | |||
| 520 | static inline void msg_set_node_sig(struct tipc_msg *m, u32 n) | ||
| 521 | { | ||
| 522 | msg_set_bits(m, 1, 0, 0xffff, n); | ||
| 523 | } | ||
| 524 | |||
| 520 | 525 | ||
| 521 | /* | 526 | /* |
| 522 | * Word 2 | 527 | * Word 2 |
