[NETLINK]: Introduce nested and byteorder flag to netlink attribute
[pandora-kernel.git] / net / ipv4 / fib_semantics.c
index d30fb68..1351a26 100644 (file)
@@ -743,7 +743,7 @@ struct fib_info *fib_create_info(struct fib_config *cfg)
                int remaining;
 
                nla_for_each_attr(nla, cfg->fc_mx, cfg->fc_mx_len, remaining) {
-                       int type = nla->nla_type;
+                       int type = nla_type(nla);
 
                        if (type) {
                                if (type > RTAX_MAX)