rk: revert to v3.10
[firefly-linux-kernel-4.4.55.git] / net / netfilter / nf_conntrack_h323_main.c
index 70866d192efc9351f2fcafe3ef23ce0c131fc0ba..bdebd03bc8cd448a75ca94db1c88ea461f72093a 100644 (file)
@@ -778,8 +778,8 @@ static int callforward_do_filter(const union nf_inet_addr *src,
                                   flowi6_to_flowi(&fl1), false)) {
                        if (!afinfo->route(&init_net, (struct dst_entry **)&rt2,
                                           flowi6_to_flowi(&fl2), false)) {
-                               if (ipv6_addr_equal(rt6_nexthop(rt1),
-                                                   rt6_nexthop(rt2)) &&
+                               if (!memcmp(&rt1->rt6i_gateway, &rt2->rt6i_gateway,
+                                           sizeof(rt1->rt6i_gateway)) &&
                                    rt1->dst.dev == rt2->dst.dev)
                                        ret = 1;
                                dst_release(&rt2->dst);