aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2007-09-12 08:44:36 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:49:16 -0400
commit8f4c1f9b049df3be11090f1c2c4738700302acae (patch)
tree51271d32096e4419173072d120176b4428e52a11 /net/ipv4
parent9d5010db7ecfd6ec00119d3b185c4c0cd3265167 (diff)
[NETLINK]: Introduce nested and byteorder flag to netlink attribute
This change allows the generic attribute interface to be used within the netfilter subsystem where this flag was initially introduced. The byte-order flag is yet unused, it's intended use is to allow automatic byte order convertions for all atomic types. Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r--net/ipv4/fib_frontend.c2
-rw-r--r--net/ipv4/fib_semantics.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/fib_frontend.c b/net/ipv4/fib_frontend.c
index df17aab193b4..f823ca34cb12 100644
--- a/net/ipv4/fib_frontend.c
+++ b/net/ipv4/fib_frontend.c
@@ -487,7 +487,7 @@ static int rtm_to_fib_config(struct sk_buff *skb, struct nlmsghdr *nlh,
487 } 487 }
488 488
489 nlmsg_for_each_attr(attr, nlh, sizeof(struct rtmsg), remaining) { 489 nlmsg_for_each_attr(attr, nlh, sizeof(struct rtmsg), remaining) {
490 switch (attr->nla_type) { 490 switch (nla_type(attr)) {
491 case RTA_DST: 491 case RTA_DST:
492 cfg->fc_dst = nla_get_be32(attr); 492 cfg->fc_dst = nla_get_be32(attr);
493 break; 493 break;
diff --git a/net/ipv4/fib_semantics.c b/net/ipv4/fib_semantics.c
index d30fb68d5f4e..1351a2617dce 100644
--- a/net/ipv4/fib_semantics.c
+++ b/net/ipv4/fib_semantics.c
@@ -743,7 +743,7 @@ struct fib_info *fib_create_info(struct fib_config *cfg)
743 int remaining; 743 int remaining;
744 744
745 nla_for_each_attr(nla, cfg->fc_mx, cfg->fc_mx_len, remaining) { 745 nla_for_each_attr(nla, cfg->fc_mx, cfg->fc_mx_len, remaining) {
746 int type = nla->nla_type; 746 int type = nla_type(nla);
747 747
748 if (type) { 748 if (type) {
749 if (type > RTAX_MAX) 749 if (type > RTAX_MAX)