/* tipc_disc_init_msg - initialize a link setup message @type: message type (request or response) @req_links: number of links associated with message @dest_domain: network domain of node(s) which should respond to message @b_ptr: ptr to bearer issuing message  */
static struct sk_buff* tipc_disc_init_msg(u32 type, u32 req_links, u32 dest_domain, struct bearer *b_ptr)
/* tipc_disc_init_msg - initialize a link setup message @type: message type (request or response) @req_links: number of links associated with message @dest_domain: network domain of node(s) which should respond to message @b_ptr: ptr to bearer issuing message  */
static struct sk_buff* tipc_disc_init_msg(u32 type, u32 req_links, u32 dest_domain, struct bearer *b_ptr)
{
	struct sk_buff *buf = buf_acquire(DSC_H_SIZE);
	struct tipc_msg *msg;
	if (buf) {
		msg = buf_msg(buf);
		msg_init(msg, LINK_CONFIG, type, DSC_H_SIZE, dest_domain);
		msg_set_non_seq(msg, 1);
		msg_set_req_links(msg, req_links);
		msg_set_dest_domain(msg, dest_domain);
		msg_set_bc_netid(msg, tipc_net_id);
		msg_set_media_addr(msg, &b_ptr->publ.addr);
	}
	return buf;
}