]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/ipv4/fib_frontend.c
[NETLINK]: Introduce nested and byteorder flag to netlink attribute
[net-next-2.6.git] / net / ipv4 / fib_frontend.c
index df17aab193b491d8f53eec28ca7d3de5883d5235..f823ca34cb12fd691e7e2ccbdf13fa59cf5bf478 100644 (file)
@@ -487,7 +487,7 @@ static int rtm_to_fib_config(struct sk_buff *skb, struct nlmsghdr *nlh,
        }
 
        nlmsg_for_each_attr(attr, nlh, sizeof(struct rtmsg), remaining) {
-               switch (attr->nla_type) {
+               switch (nla_type(attr)) {
                case RTA_DST:
                        cfg->fc_dst = nla_get_be32(attr);
                        break;