]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/ipv4/fib_semantics.c
net: use net_eq to compare nets
[net-next-2.6.git] / net / ipv4 / fib_semantics.c
index 9b096d6ff3f28eadd6a71fd234a172b8a1d15061..ed19aa6919c2fd73f02dafa390fef4093fb8bc34 100644 (file)
@@ -228,7 +228,7 @@ static struct fib_info *fib_find_info(const struct fib_info *nfi)
        head = &fib_info_hash[hash];
 
        hlist_for_each_entry(fi, node, head, fib_hash) {
-               if (fi->fib_net != nfi->fib_net)
+               if (!net_eq(fi->fib_net, nfi->fib_net))
                        continue;
                if (fi->fib_nhs != nfi->fib_nhs)
                        continue;
@@ -1047,7 +1047,7 @@ int fib_sync_down_addr(struct net *net, __be32 local)
                return 0;
 
        hlist_for_each_entry(fi, node, head, fib_lhash) {
-               if (fi->fib_net != net)
+               if (!net_eq(fi->fib_net, net))
                        continue;
                if (fi->fib_prefsrc == local) {
                        fi->fib_flags |= RTNH_F_DEAD;