summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2013-03-13 17:07:01 +0100
committerThomas Graf <tgraf@suug.ch>2013-03-14 12:46:06 +0100
commit64315f731cedb3ca1736533dab92592c330a1083 (patch)
tree35b7177a950446f4e644473be15dedf94e9ce9b1
parent60b370de8ca2c66a9259182ae2fc4588ed8777d9 (diff)
attr: No longer warn about attribute of type 0
The kernel will start using type 0 attributes for padding purposes. Signed-off-by: Thomas Graf <tgraf@suug.ch>
-rw-r--r--lib/attr.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/attr.c b/lib/attr.c
index 90070df..093ffb5 100644
--- a/lib/attr.c
+++ b/lib/attr.c
@@ -250,10 +250,9 @@ int nla_parse(struct nlattr *tb[], int maxtype, struct nlattr *head, int len,
nla_for_each_attr(nla, head, len, rem) {
int type = nla_type(nla);
- if (type == 0) {
- NL_DBG(1, "Illegal nla->nla_type == 0\n");
+ /* Padding attributes */
+ if (type == 0)
continue;
- }
if (type <= maxtype) {
if (policy) {