/* tipc_link_stop - purge all inbound and outbound messages associated with link @l_ptr: pointer to link  */
void tipc_link_stop(struct link *l_ptr)
/* tipc_link_stop - purge all inbound and outbound messages associated with link @l_ptr: pointer to link  */
void tipc_link_stop(struct link *l_ptr)
{
	struct sk_buff *buf;
	struct sk_buff *next;
	buf = l_ptr->oldest_deferred_in;
	while (buf) {
		next = buf->next;
		buf_discard(buf);
		buf = next;
	}
	buf = l_ptr->first_out;
	while (buf) {
		next = buf->next;
		buf_discard(buf);
		buf = next;
	}
	tipc_link_reset_fragments(l_ptr);
	buf_discard(l_ptr->proto_msg_queue);
	l_ptr->proto_msg_queue = NULL;
}