Skip to content

Commit

Permalink
[IPV4]: multipath_set_nhinfo() annotations
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Al Viro authored and David S. Miller committed Sep 29, 2006
1 parent 32ab5f8 commit d9cd66e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/net/ip_mp_alg.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ struct ip_mp_alg_ops {
void (*mp_alg_select_route)(const struct flowi *flp,
struct rtable *rth, struct rtable **rp);
void (*mp_alg_flush)(void);
void (*mp_alg_set_nhinfo)(__u32 network, __u32 netmask,
void (*mp_alg_set_nhinfo)(__be32 network, __be32 netmask,
unsigned char prefixlen,
const struct fib_nh *nh);
void (*mp_alg_remove)(struct rtable *rth);
Expand Down Expand Up @@ -59,7 +59,7 @@ static inline void multipath_flush(void)
}

static inline void multipath_set_nhinfo(struct rtable *rth,
__u32 network, __u32 netmask,
__be32 network, __be32 netmask,
unsigned char prefixlen,
const struct fib_nh *nh)
{
Expand Down
4 changes: 2 additions & 2 deletions net/ipv4/multipath_wrandom.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ static void wrandom_select_route(const struct flowi *flp,
*rp = decision;
}

static void wrandom_set_nhinfo(__u32 network,
__u32 netmask,
static void wrandom_set_nhinfo(__be32 network,
__be32 netmask,
unsigned char prefixlen,
const struct fib_nh *nh)
{
Expand Down

0 comments on commit d9cd66e

Please sign in to comment.