diff options
| author | David S. Miller <davem@davemloft.net> | 2018-09-29 21:24:22 +0300 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2018-09-29 21:24:22 +0300 |
| commit | 6e9feb33911f59e03684941f089115b58429fe79 (patch) | |
| tree | bb149221e75bb812ed610f50f993d81c55af9dd8 /net/tipc/msg.h | |
| parent | a337531b942bd8a03e7052444d7e36972aac2d92 (diff) | |
| parent | 6787927475e52f6933e3affce365dabb2aa2fadf (diff) | |
| download | linux-6e9feb33911f59e03684941f089115b58429fe79.tar.xz | |
Merge branch 'tipc-next'
Jon Maloy says:
====================
tipc: make connection setup more robust
In this series we make a few improvements to the connection setup and
probing mechanism, culminating in the last commit where we make it
possible for a client socket to make multiple setup attempts in case
it encounters receive buffer overflow at the listener socket.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/msg.h')
| -rw-r--r-- | net/tipc/msg.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/net/tipc/msg.h b/net/tipc/msg.h index a4e944d59394..a2879e6ec5b6 100644 --- a/net/tipc/msg.h +++ b/net/tipc/msg.h @@ -216,6 +216,16 @@ static inline void msg_set_non_seq(struct tipc_msg *m, u32 n) msg_set_bits(m, 0, 20, 1, n); } +static inline int msg_is_syn(struct tipc_msg *m) +{ + return msg_bits(m, 0, 17, 1); +} + +static inline void msg_set_syn(struct tipc_msg *m, u32 d) +{ + msg_set_bits(m, 0, 17, 1, d); +} + static inline int msg_dest_droppable(struct tipc_msg *m) { return msg_bits(m, 0, 19, 1); @@ -970,6 +980,7 @@ bool tipc_msg_pskb_copy(u32 dst, struct sk_buff_head *msg, struct sk_buff_head *cpy); void __tipc_skb_queue_sorted(struct sk_buff_head *list, u16 seqno, struct sk_buff *skb); +bool tipc_msg_skb_clone(struct sk_buff_head *msg, struct sk_buff_head *cpy); static inline u16 buf_seqno(struct sk_buff *skb) { |
