1 /* 2 * src/lib/qdisc.c CLI QDisc Helpers 3 * 4 * This library is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU Lesser General Public 6 * License as published by the Free Software Foundation version 2.1 7 * of the License. 8 * 9 * Copyright (c) 2008-2011 Thomas Graf <tgraf@suug.ch> 10 */ 11 12 /** 13 * @ingroup cli 14 * @defgroup cli_qdisc Queueing Disciplines 15 * @{ 16 */ 17 18 #include <netlink/cli/utils.h> 19 #include <netlink/cli/qdisc.h> 20 #include <netlink/route/class.h> 21 nl_cli_qdisc_alloc(void)22struct rtnl_qdisc *nl_cli_qdisc_alloc(void) 23 { 24 struct rtnl_qdisc *qdisc; 25 26 if (!(qdisc = rtnl_qdisc_alloc())) 27 nl_cli_fatal(ENOMEM, "Unable to allocate qdisc object"); 28 29 return qdisc; 30 } 31 32 /** @} */ 33