qdisc.c

00001 /*
00002  * src/lib/qdisc.c     CLI QDisc Helpers
00003  *
00004  *      This library is free software; you can redistribute it and/or
00005  *      modify it under the terms of the GNU Lesser General Public
00006  *      License as published by the Free Software Foundation version 2.1
00007  *      of the License.
00008  *
00009  * Copyright (c) 2008-2011 Thomas Graf <tgraf@suug.ch>
00010  */
00011 
00012 /**
00013  * @ingroup cli
00014  * @defgroup cli_qdisc Queueing Disciplines
00015  * @{
00016  */
00017 
00018 #include <netlink/cli/utils.h>
00019 #include <netlink/cli/qdisc.h>
00020 #include <netlink/route/class.h>
00021 
00022 struct rtnl_qdisc *nl_cli_qdisc_alloc(void)
00023 {
00024         struct rtnl_qdisc *qdisc;
00025 
00026         if (!(qdisc = rtnl_qdisc_alloc()))
00027                 nl_cli_fatal(ENOMEM, "Unable to allocate qdisc object");
00028 
00029         return qdisc;
00030 }
00031 
00032 /** @} */