aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2006-09-27 01:20:56 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2006-09-28 21:01:12 -0400
commit1ef1b8c85bb4954b7dca816f1bb7fd54bcd78078 (patch)
treecb5eff99198c273e880f5f6bdb50e9b198dd50bb
parentb6e80c6c8b2de8b581e7521af3e118ea379260f1 (diff)
[IPV4]: fib_semantic_match() annotations
'mask' and 'zone' arguments are net-endian 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_lookup.h2
-rw-r--r--net/ipv4/fib_semantics.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/fib_lookup.h b/net/ipv4/fib_lookup.h
index fd6f7769f8ab..6e9b3e86ae84 100644
--- a/net/ipv4/fib_lookup.h
+++ b/net/ipv4/fib_lookup.h
@@ -20,7 +20,7 @@ struct fib_alias {
20/* Exported by fib_semantics.c */ 20/* Exported by fib_semantics.c */
21extern int fib_semantic_match(struct list_head *head, 21extern int fib_semantic_match(struct list_head *head,
22 const struct flowi *flp, 22 const struct flowi *flp,
23 struct fib_result *res, __u32 zone, __u32 mask, 23 struct fib_result *res, __be32 zone, __be32 mask,
24 int prefixlen); 24 int prefixlen);
25extern void fib_release_info(struct fib_info *); 25extern void fib_release_info(struct fib_info *);
26extern struct fib_info *fib_create_info(struct fib_config *cfg); 26extern struct fib_info *fib_create_info(struct fib_config *cfg);
diff --git a/net/ipv4/fib_semantics.c b/net/ipv4/fib_semantics.c
index d853bd2bd0d2..66b78df1c672 100644
--- a/net/ipv4/fib_semantics.c
+++ b/net/ipv4/fib_semantics.c
@@ -847,7 +847,7 @@ failure:
847 847
848/* Note! fib_semantic_match intentionally uses RCU list functions. */ 848/* Note! fib_semantic_match intentionally uses RCU list functions. */
849int fib_semantic_match(struct list_head *head, const struct flowi *flp, 849int fib_semantic_match(struct list_head *head, const struct flowi *flp,
850 struct fib_result *res, __u32 zone, __u32 mask, 850 struct fib_result *res, __be32 zone, __be32 mask,
851 int prefixlen) 851 int prefixlen)
852{ 852{
853 struct fib_alias *fa; 853 struct fib_alias *fa;