]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/ipv4/fib_semantics.c
[NETLINK]: Introduce nested and byteorder flag to netlink attribute
[net-next-2.6.git] / net / ipv4 / fib_semantics.c
index d30fb68d5f4e88007256638750b10b46ae73f316..1351a2617dcef072ee0adebdd59ea1007b9a4bbd 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)