diff options
Diffstat (limited to 'net/tipc/msg.h')
-rw-r--r-- | net/tipc/msg.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/net/tipc/msg.h b/net/tipc/msg.h index 9f0ef54be612..55778a0aebf3 100644 --- a/net/tipc/msg.h +++ b/net/tipc/msg.h | |||
@@ -112,6 +112,7 @@ struct tipc_skb_cb { | |||
112 | bool wakeup_pending; | 112 | bool wakeup_pending; |
113 | u16 chain_sz; | 113 | u16 chain_sz; |
114 | u16 chain_imp; | 114 | u16 chain_imp; |
115 | u16 ackers; | ||
115 | }; | 116 | }; |
116 | 117 | ||
117 | #define TIPC_SKB_CB(__skb) ((struct tipc_skb_cb *)&((__skb)->cb[0])) | 118 | #define TIPC_SKB_CB(__skb) ((struct tipc_skb_cb *)&((__skb)->cb[0])) |
@@ -600,6 +601,11 @@ static inline u32 msg_last_bcast(struct tipc_msg *m) | |||
600 | return msg_bits(m, 4, 16, 0xffff); | 601 | return msg_bits(m, 4, 16, 0xffff); |
601 | } | 602 | } |
602 | 603 | ||
604 | static inline u32 msg_bc_snd_nxt(struct tipc_msg *m) | ||
605 | { | ||
606 | return msg_last_bcast(m) + 1; | ||
607 | } | ||
608 | |||
603 | static inline void msg_set_last_bcast(struct tipc_msg *m, u32 n) | 609 | static inline void msg_set_last_bcast(struct tipc_msg *m, u32 n) |
604 | { | 610 | { |
605 | msg_set_bits(m, 4, 16, 0xffff, n); | 611 | msg_set_bits(m, 4, 16, 0xffff, n); |
@@ -789,7 +795,7 @@ bool tipc_msg_extract(struct sk_buff *skb, struct sk_buff **iskb, int *pos); | |||
789 | int tipc_msg_build(struct tipc_msg *mhdr, struct msghdr *m, | 795 | int tipc_msg_build(struct tipc_msg *mhdr, struct msghdr *m, |
790 | int offset, int dsz, int mtu, struct sk_buff_head *list); | 796 | int offset, int dsz, int mtu, struct sk_buff_head *list); |
791 | bool tipc_msg_lookup_dest(struct net *net, struct sk_buff *skb, int *err); | 797 | bool tipc_msg_lookup_dest(struct net *net, struct sk_buff *skb, int *err); |
792 | struct sk_buff *tipc_msg_reassemble(struct sk_buff_head *list); | 798 | bool tipc_msg_reassemble(struct sk_buff_head *list, struct sk_buff_head *rcvq); |
793 | void __tipc_skb_queue_sorted(struct sk_buff_head *list, u16 seqno, | 799 | void __tipc_skb_queue_sorted(struct sk_buff_head *list, u16 seqno, |
794 | struct sk_buff *skb); | 800 | struct sk_buff *skb); |
795 | 801 | ||