18808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf/*
28808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf * src/lib/qdisc.c     CLI QDisc Helpers
38808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf *
48808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf *	This library is free software; you can redistribute it and/or
58808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf *	modify it under the terms of the GNU Lesser General Public
68808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf *	License as published by the Free Software Foundation version 2.1
78808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf *	of the License.
88808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf *
9054c80d775f2ae9b8f50260bdfcb821e99c0da2aPaul Stewart * Copyright (c) 2008-2011 Thomas Graf <tgraf@suug.ch>
108808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf */
118808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf
128808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf/**
138808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf * @ingroup cli
148808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf * @defgroup cli_qdisc Queueing Disciplines
158808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf * @{
168808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf */
178808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf
188808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf#include <netlink/cli/utils.h>
198808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf#include <netlink/cli/qdisc.h>
20054c80d775f2ae9b8f50260bdfcb821e99c0da2aPaul Stewart#include <netlink/route/class.h>
218808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf
228808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Grafstruct rtnl_qdisc *nl_cli_qdisc_alloc(void)
238808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf{
248808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf	struct rtnl_qdisc *qdisc;
258808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf
26054c80d775f2ae9b8f50260bdfcb821e99c0da2aPaul Stewart	if (!(qdisc = rtnl_qdisc_alloc()))
278808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf		nl_cli_fatal(ENOMEM, "Unable to allocate qdisc object");
288808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf
298808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf	return qdisc;
308808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf}
318808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf
328808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf/** @} */
33