summaryrefslogtreecommitdiff
path: root/src/lib/qdisc.c
blob: 659594a3b041b1b05cc95e65a3f676c861432934 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* SPDX-License-Identifier: LGPL-2.1-only */
/*
 * Copyright (c) 2008-2011 Thomas Graf <tgraf@suug.ch>
 */

/**
 * @ingroup cli
 * @defgroup cli_qdisc Queueing Disciplines
 * @{
 */

#include "nl-default.h"

#include <netlink/cli/utils.h>
#include <netlink/cli/qdisc.h>
#include <netlink/route/class.h>

struct rtnl_qdisc *nl_cli_qdisc_alloc(void)
{
	struct rtnl_qdisc *qdisc;

	if (!(qdisc = rtnl_qdisc_alloc()))
		nl_cli_fatal(ENOMEM, "Unable to allocate qdisc object");

	return qdisc;
}

/** @} */