mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-16 17:09:24 +01:00
monitor: Mask flags from attribute identifier
Certain flags (for example, NLA_F_NESTED) are ORed with the netlink attribute type identifier prior to being sent on the wire. Such flags need to be masked off and not taken into consideration when attribute type is being compared against known values.
This commit is contained in:
parent
194d8a3052
commit
96492483ee
@ -7762,7 +7762,7 @@ static void print_rtnl_attributes(int indent, const struct attr_entry *table,
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
for (attr = rt_attr; RTA_OK(attr, len); attr = RTA_NEXT(attr, len)) {
|
for (attr = rt_attr; RTA_OK(attr, len); attr = RTA_NEXT(attr, len)) {
|
||||||
uint16_t rta_type = attr->rta_type;
|
uint16_t rta_type = attr->rta_type & NLA_TYPE_MASK;
|
||||||
enum attr_type type = ATTR_UNSPEC;
|
enum attr_type type = ATTR_UNSPEC;
|
||||||
attr_func_t function;
|
attr_func_t function;
|
||||||
const struct attr_entry *nested;
|
const struct attr_entry *nested;
|
||||||
|
Loading…
Reference in New Issue
Block a user