aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2006-09-27 21:40:27 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2006-09-28 21:02:24 -0400
commit45d60b9e29556a7831812ec338d82f4d3a4145f8 (patch)
tree9a75754845b8935483464dc6470ac5b340385c12
parent81f7bf6cbaca02c034b0393c51fc22b29cba20f7 (diff)
[IPV4]: FRA_{DST,SRC} annotated
use be32 netlink accessors for those Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/ipv4/fib_rules.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/net/ipv4/fib_rules.c b/net/ipv4/fib_rules.c
index f2d4070aaf01..0852b9cd065a 100644
--- a/net/ipv4/fib_rules.c
+++ b/net/ipv4/fib_rules.c
@@ -215,10 +215,10 @@ static int fib4_rule_configure(struct fib_rule *rule, struct sk_buff *skb,
215 } 215 }
216 216
217 if (tb[FRA_SRC]) 217 if (tb[FRA_SRC])
218 rule4->src = nla_get_u32(tb[FRA_SRC]); 218 rule4->src = nla_get_be32(tb[FRA_SRC]);
219 219
220 if (tb[FRA_DST]) 220 if (tb[FRA_DST])
221 rule4->dst = nla_get_u32(tb[FRA_DST]); 221 rule4->dst = nla_get_be32(tb[FRA_DST]);
222 222
223#ifdef CONFIG_IP_ROUTE_FWMARK 223#ifdef CONFIG_IP_ROUTE_FWMARK
224 if (tb[FRA_FWMARK]) { 224 if (tb[FRA_FWMARK]) {
@@ -277,10 +277,10 @@ static int fib4_rule_compare(struct fib_rule *rule, struct fib_rule_hdr *frh,
277 return 0; 277 return 0;
278#endif 278#endif
279 279
280 if (tb[FRA_SRC] && (rule4->src != nla_get_u32(tb[FRA_SRC]))) 280 if (tb[FRA_SRC] && (rule4->src != nla_get_be32(tb[FRA_SRC])))
281 return 0; 281 return 0;
282 282
283 if (tb[FRA_DST] && (rule4->dst != nla_get_u32(tb[FRA_DST]))) 283 if (tb[FRA_DST] && (rule4->dst != nla_get_be32(tb[FRA_DST])))
284 return 0; 284 return 0;
285 285
286 return 1; 286 return 1;
@@ -305,10 +305,10 @@ static int fib4_rule_fill(struct fib_rule *rule, struct sk_buff *skb,
305#endif 305#endif
306 306
307 if (rule4->dst_len) 307 if (rule4->dst_len)
308 NLA_PUT_U32(skb, FRA_DST, rule4->dst); 308 NLA_PUT_BE32(skb, FRA_DST, rule4->dst);
309 309
310 if (rule4->src_len) 310 if (rule4->src_len)
311 NLA_PUT_U32(skb, FRA_SRC, rule4->src); 311 NLA_PUT_BE32(skb, FRA_SRC, rule4->src);
312 312
313#ifdef CONFIG_NET_CLS_ROUTE 313#ifdef CONFIG_NET_CLS_ROUTE
314 if (rule4->tclassid) 314 if (rule4->tclassid)