This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
2009-12-16 15:20:46 +00:00
|
|
|
/*
|
|
|
|
* src/lib/qdisc.c CLI QDisc Helpers
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation version 2.1
|
|
|
|
* of the License.
|
|
|
|
*
|
2011-03-21 14:51:52 +00:00
|
|
|
* Copyright (c) 2008-2011 Thomas Graf <tgraf@suug.ch>
|
2009-12-16 15:20:46 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @ingroup cli
|
|
|
|
* @defgroup cli_qdisc Queueing Disciplines
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <netlink/cli/utils.h>
|
|
|
|
#include <netlink/cli/qdisc.h>
|
2010-10-20 12:57:39 +00:00
|
|
|
#include <netlink/route/class.h>
|
2009-12-16 15:20:46 +00:00
|
|
|
|
|
|
|
struct rtnl_qdisc *nl_cli_qdisc_alloc(void)
|
|
|
|
{
|
|
|
|
struct rtnl_qdisc *qdisc;
|
|
|
|
|
2011-03-21 14:51:52 +00:00
|
|
|
if (!(qdisc = rtnl_qdisc_alloc()))
|
2009-12-16 15:20:46 +00:00
|
|
|
nl_cli_fatal(ENOMEM, "Unable to allocate qdisc object");
|
|
|
|
|
|
|
|
return qdisc;
|
|
|
|
}
|
|
|
|
|
|
|
|
/** @} */
|