dect
/
libnl
Archived
13
0
Fork 0

tbf: fix false missing attr

Fix false missing attribute in tbf_msg_fill() when applying a tbf qdisc.
This commit is contained in:
Stephane Fillod 2012-08-01 22:29:47 +02:00 committed by Thomas Graf
parent 941ba950a9
commit 9426d03e3a
1 changed files with 1 additions and 1 deletions

View File

@ -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));