summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorStephane Fillod <fillods@users.sf.net>2012-08-01 20:29:47 (GMT)
committerThomas Graf <tgraf@redhat.com>2012-08-09 12:33:38 (GMT)
commit9426d03e3ae4510e3febf73fad520be37de05d7f (patch)
treeca9708b83fd7631113e5da831e4e422197f3091d /lib
parent941ba950a9fa914e324c7e204c145bf7af526bf4 (diff)
downloadlibnl-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.c2
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));