diff options
Diffstat (limited to 'net/tipc/msg.h')
| -rw-r--r-- | net/tipc/msg.h | 19 | 
1 files changed, 18 insertions, 1 deletions
diff --git a/net/tipc/msg.h b/net/tipc/msg.h index c3832cdf2278..8d408612ffa4 100644 --- a/net/tipc/msg.h +++ b/net/tipc/msg.h @@ -95,7 +95,7 @@ struct plist;  #define TIPC_MEDIA_INFO_OFFSET	5  struct tipc_skb_cb { -	void *handle; +	u32 bytes_read;  	struct sk_buff *tail;  	bool validated;  	bool wakeup_pending; @@ -714,6 +714,23 @@ static inline void msg_set_peer_stopping(struct tipc_msg *m, u32 s)  	msg_set_bits(m, 5, 13, 0x1, s);  } +static inline bool msg_bc_ack_invalid(struct tipc_msg *m) +{ +	switch (msg_user(m)) { +	case BCAST_PROTOCOL: +	case NAME_DISTRIBUTOR: +	case LINK_PROTOCOL: +		return msg_bits(m, 5, 14, 0x1); +	default: +		return false; +	} +} + +static inline void msg_set_bc_ack_invalid(struct tipc_msg *m, bool invalid) +{ +	msg_set_bits(m, 5, 14, 0x1, invalid); +} +  static inline char *msg_media_addr(struct tipc_msg *m)  {  	return (char *)&m->hdr[TIPC_MEDIA_INFO_OFFSET];  |