aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/msg.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/tipc/msg.h')
-rw-r--r--net/tipc/msg.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/net/tipc/msg.h b/net/tipc/msg.h
index a4e944d59394..a0924956bb61 100644
--- a/net/tipc/msg.h
+++ b/net/tipc/msg.h
@@ -105,6 +105,7 @@ struct tipc_skb_cb {
105 u32 bytes_read; 105 u32 bytes_read;
106 u32 orig_member; 106 u32 orig_member;
107 struct sk_buff *tail; 107 struct sk_buff *tail;
108 unsigned long nxt_retr;
108 bool validated; 109 bool validated;
109 u16 chain_imp; 110 u16 chain_imp;
110 u16 ackers; 111 u16 ackers;
@@ -216,6 +217,16 @@ static inline void msg_set_non_seq(struct tipc_msg *m, u32 n)
216 msg_set_bits(m, 0, 20, 1, n); 217 msg_set_bits(m, 0, 20, 1, n);
217} 218}
218 219
220static inline int msg_is_syn(struct tipc_msg *m)
221{
222 return msg_bits(m, 0, 17, 1);
223}
224
225static inline void msg_set_syn(struct tipc_msg *m, u32 d)
226{
227 msg_set_bits(m, 0, 17, 1, d);
228}
229
219static inline int msg_dest_droppable(struct tipc_msg *m) 230static inline int msg_dest_droppable(struct tipc_msg *m)
220{ 231{
221 return msg_bits(m, 0, 19, 1); 232 return msg_bits(m, 0, 19, 1);
@@ -970,6 +981,7 @@ bool tipc_msg_pskb_copy(u32 dst, struct sk_buff_head *msg,
970 struct sk_buff_head *cpy); 981 struct sk_buff_head *cpy);
971void __tipc_skb_queue_sorted(struct sk_buff_head *list, u16 seqno, 982void __tipc_skb_queue_sorted(struct sk_buff_head *list, u16 seqno,
972 struct sk_buff *skb); 983 struct sk_buff *skb);
984bool tipc_msg_skb_clone(struct sk_buff_head *msg, struct sk_buff_head *cpy);
973 985
974static inline u16 buf_seqno(struct sk_buff *skb) 986static inline u16 buf_seqno(struct sk_buff *skb)
975{ 987{