Below upstream patches were added:
https://github.com/tgraf/libnl/commit/
8222519f
Fix the always false if (a->rt_nr_nh != a->rt_nr_nh) test
Fix the always false if (a->rt_nr_nh != a->rt_nr_nh) test and compare
properly the a and b structs
https://github.com/tgraf/libnl/commit/
9426d03e
tbf: fix false missing attr
Fix false missing attribute in tbf_msg_fill() when applying a tbf
qdisc.
Change-Id: Ia58b09d7e3eb557b6649c9bf1db6328511433c9f
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
diff |= ROUTE_DIFF(FLAGS,
(a->rt_flags ^ b->rt_flags) & b->rt_flag_mask);
} else {
- if (a->rt_nr_nh != a->rt_nr_nh)
+ if (a->rt_nr_nh != b->rt_nr_nh)
goto nh_mismatch;
/* search for a dup in each nh of a */
if (!tbf)
return NULL;
- if (!(tbf->qt_mask & required) != required)
+ if ((tbf->qt_mask & required) != required)
return NULL;
opts.limit = tbf->qt_limit;