Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 34011
b: refs/heads/master
c: 888454c
h: refs/heads/master
i:
  34009: 0703f00
  34007: 47fbb3b
v: v3
  • Loading branch information
Al Viro authored and David S. Miller committed Sep 19, 2006
1 parent 49a88c8 commit a07b0c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b22b9004f22ba8ca33d15059e8b710a4b71ec3cc
refs/heads/master: 888454c57a45511808d3fa52597b3d765df034a6
8 changes: 4 additions & 4 deletions trunk/net/ipv4/fib_trie.c
Original file line number Diff line number Diff line change
Expand Up @@ -1281,18 +1281,18 @@ static inline int check_leaf(struct trie *t, struct leaf *l,
struct fib_result *res)
{
int err, i;
t_key mask;
__be32 mask;
struct leaf_info *li;
struct hlist_head *hhead = &l->list;
struct hlist_node *node;

hlist_for_each_entry_rcu(li, node, hhead, hlist) {
i = li->plen;
mask = ntohl(inet_make_mask(i));
if (l->key != (key & mask))
mask = inet_make_mask(i);
if (l->key != (key & ntohl(mask)))
continue;

if ((err = fib_semantic_match(&li->falh, flp, res, l->key, mask, i)) <= 0) {
if ((err = fib_semantic_match(&li->falh, flp, res, htonl(l->key), mask, i)) <= 0) {
*plen = i;
#ifdef CONFIG_IP_FIB_TRIE_STATS
t->stats.semantic_match_passed++;
Expand Down

0 comments on commit a07b0c2

Please sign in to comment.