dect
/
libnl
Archived
13
0
Fork 0

dump_attrs: "NLA_F_NESTED" => nla_is_nested(nla)

This commit is contained in:
Коренберг Марк (дома) 2013-04-26 23:50:54 +06:00
parent d505165f2b
commit 59db7fb35b
1 changed files with 2 additions and 2 deletions

View File

@ -886,10 +886,10 @@ static void dump_attrs(FILE *ofd, struct nlattr *attrs, int attrlen,
fprintf(ofd, " [ATTR PADDING] %d octets\n", alen);
else
fprintf(ofd, " [ATTR %02d%s] %d octets\n", nla_type(nla),
nla->nla_type & NLA_F_NESTED ? " NESTED" : "",
nla_is_nested(nla) ? " NESTED" : "",
alen);
if (nla->nla_type & NLA_F_NESTED)
if (nla_is_nested(nla))
dump_attrs(ofd, nla_data(nla), alen, prefix+1);
else
dump_attr(ofd, nla, prefix);