diff options
author | Stephane Fillod <fillods@users.sf.net> | 2012-08-01 20:29:47 (GMT) |
---|---|---|
committer | Thomas Graf <tgraf@redhat.com> | 2012-08-09 12:33:38 (GMT) |
commit | 9426d03e3ae4510e3febf73fad520be37de05d7f (patch) | |
tree | ca9708b83fd7631113e5da831e4e422197f3091d /lib | |
parent | 941ba950a9fa914e324c7e204c145bf7af526bf4 (diff) | |
download | libnl-9426d03e3ae4510e3febf73fad520be37de05d7f.zip libnl-9426d03e3ae4510e3febf73fad520be37de05d7f.tar.gz libnl-9426d03e3ae4510e3febf73fad520be37de05d7f.tar.bz2 |
tbf: fix false missing attr
Fix false missing attribute in tbf_msg_fill() when applying a tbf qdisc.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/route/qdisc/tbf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/route/qdisc/tbf.c b/lib/route/qdisc/tbf.c index 81bd84c..a115548 100644 --- a/lib/route/qdisc/tbf.c +++ b/lib/route/qdisc/tbf.c @@ -135,7 +135,7 @@ static int tbf_msg_fill(struct rtnl_tc *tc, void *data, struct nl_msg *msg) struct rtnl_tbf *tbf = data; int required = TBF_ATTR_RATE | TBF_ATTR_LIMIT; - if (!(tbf->qt_mask & required) != required) + if ((tbf->qt_mask & required) != required) return -NLE_MISSING_ATTR; memset(&opts, 0, sizeof(opts)); |