diff options
author | Thomas Graf <tgraf@suug.ch> | 2011-03-17 16:31:08 (GMT) |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2011-03-17 16:31:08 (GMT) |
commit | 5dc897d5de9f54078221b241e0122713207f5e0c (patch) | |
tree | b8ed4235f308f02647cbcb72ef9bf3fa7a3bfed8 /lib | |
parent | 552c85cab787fde0aeb68b50eb56690e7652710c (diff) | |
download | libnl-5dc897d5de9f54078221b241e0122713207f5e0c.zip libnl-5dc897d5de9f54078221b241e0122713207f5e0c.tar.gz libnl-5dc897d5de9f54078221b241e0122713207f5e0c.tar.bz2 |
provide function to retrieve htb rate
Diffstat (limited to 'lib')
-rw-r--r-- | lib/route/sch/htb.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/route/sch/htb.c b/lib/route/sch/htb.c index 4af8a04..79a58be 100644 --- a/lib/route/sch/htb.c +++ b/lib/route/sch/htb.c @@ -361,6 +361,15 @@ void rtnl_htb_set_rate(struct rtnl_class *class, uint32_t rate) d->ch_mask |= SCH_HTB_HAS_RATE; } +uint32_t rtnl_htb_get_rate(struct rtnl_class *class) +{ + struct rtnl_htb_class *d = htb_class(class); + if (d == NULL) + return 0; + + return d->ch_rate.rs_rate; +} + /** * Set ceil of HTB class. * @arg class HTB class to be modified. |