]> granicus.if.org Git - libnl/commitdiff
attr: No longer warn about attribute of type 0
authorThomas Graf <tgraf@suug.ch>
Wed, 13 Mar 2013 16:07:01 +0000 (17:07 +0100)
committerThomas Graf <tgraf@suug.ch>
Thu, 14 Mar 2013 11:46:06 +0000 (12:46 +0100)
The kernel will start using type 0 attributes for padding purposes.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
lib/attr.c

index 90070dfe239c6551eb730c2e1075b54ea0a8c794..093ffb5de570477291cb0af89537d7d92cdef866 100644 (file)
@@ -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) {