Debian Codegraph @

src/lib/qdisc.c

raw
1 /* SPDX-License-Identifier: LGPL-2.1-only */
2 /*
3 * Copyright (c) 2008-2011 Thomas Graf <[email protected]>
4 */
5
6 /**
7 * @ingroup cli
8 * @defgroup cli_qdisc Queueing Disciplines
9 * @{
10 */
11
12 #include "nl-default.h"
13
14 #include <netlink/cli/utils.h>
15 #include <netlink/cli/qdisc.h>
16 #include <netlink/route/class.h>
17
18 struct rtnl_qdisc *nl_cli_qdisc_alloc(void)
19 {
20 struct rtnl_qdisc *qdisc;
21
22 if (!(qdisc = rtnl_qdisc_alloc()))
23 nl_cli_fatal(ENOMEM, "Unable to allocate qdisc object");
24
25 return qdisc;
26 }
27
28 /** @} */