diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2006-09-27 01:22:50 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-09-28 21:01:15 -0400 |
commit | d9cd66e0e593929077b5ecf87384e23db7271c6e (patch) | |
tree | 88687af48f84fff9329060b7b286a52083dea997 | |
parent | 32ab5f80334fc067386c4c56c434010c01cff6b9 (diff) |
[IPV4]: multipath_set_nhinfo() annotations
multipath_set_nhinfo() (and underlying callback) take net-endian
network and netmask.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/net/ip_mp_alg.h | 4 | ||||
-rw-r--r-- | net/ipv4/multipath_wrandom.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/net/ip_mp_alg.h b/include/net/ip_mp_alg.h index ac747b64734c..beffdd66ad74 100644 --- a/include/net/ip_mp_alg.h +++ b/include/net/ip_mp_alg.h | |||
@@ -17,7 +17,7 @@ struct ip_mp_alg_ops { | |||
17 | void (*mp_alg_select_route)(const struct flowi *flp, | 17 | void (*mp_alg_select_route)(const struct flowi *flp, |
18 | struct rtable *rth, struct rtable **rp); | 18 | struct rtable *rth, struct rtable **rp); |
19 | void (*mp_alg_flush)(void); | 19 | void (*mp_alg_flush)(void); |
20 | void (*mp_alg_set_nhinfo)(__u32 network, __u32 netmask, | 20 | void (*mp_alg_set_nhinfo)(__be32 network, __be32 netmask, |
21 | unsigned char prefixlen, | 21 | unsigned char prefixlen, |
22 | const struct fib_nh *nh); | 22 | const struct fib_nh *nh); |
23 | void (*mp_alg_remove)(struct rtable *rth); | 23 | void (*mp_alg_remove)(struct rtable *rth); |
@@ -59,7 +59,7 @@ static inline void multipath_flush(void) | |||
59 | } | 59 | } |
60 | 60 | ||
61 | static inline void multipath_set_nhinfo(struct rtable *rth, | 61 | static inline void multipath_set_nhinfo(struct rtable *rth, |
62 | __u32 network, __u32 netmask, | 62 | __be32 network, __be32 netmask, |
63 | unsigned char prefixlen, | 63 | unsigned char prefixlen, |
64 | const struct fib_nh *nh) | 64 | const struct fib_nh *nh) |
65 | { | 65 | { |
diff --git a/net/ipv4/multipath_wrandom.c b/net/ipv4/multipath_wrandom.c index d25ec4ae09e5..773acc9ccd7c 100644 --- a/net/ipv4/multipath_wrandom.c +++ b/net/ipv4/multipath_wrandom.c | |||
@@ -217,8 +217,8 @@ static void wrandom_select_route(const struct flowi *flp, | |||
217 | *rp = decision; | 217 | *rp = decision; |
218 | } | 218 | } |
219 | 219 | ||
220 | static void wrandom_set_nhinfo(__u32 network, | 220 | static void wrandom_set_nhinfo(__be32 network, |
221 | __u32 netmask, | 221 | __be32 netmask, |
222 | unsigned char prefixlen, | 222 | unsigned char prefixlen, |
223 | const struct fib_nh *nh) | 223 | const struct fib_nh *nh) |
224 | { | 224 | { |