Skip to content

Commit

Permalink
[IPV4] bug: open-coded inet_make_mask() in fib_semantic_match() is br…
Browse files Browse the repository at this point in the history
…oken

... and works only on little-endian

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 1ef1b8c commit 1e8aa6f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions net/ipv4/fib_semantics.c
Original file line number Diff line number Diff line change
Expand Up @@ -914,8 +914,7 @@ int fib_semantic_match(struct list_head *head, const struct flowi *flp,
res->fi = fa->fa_info;
#ifdef CONFIG_IP_ROUTE_MULTIPATH_CACHED
res->netmask = mask;
res->network = zone &
(0xFFFFFFFF >> (32 - prefixlen));
res->network = zone & inet_make_mask(prefixlen);
#endif
atomic_inc(&res->fi->fib_clntref);
return 0;
Expand Down

0 comments on commit 1e8aa6f

Please sign in to comment.