Revert to Fedora kernel-2.6.17-1.2187_FC5 patched with vs2.0.2.1; there are too many...
[linux-2.6.git] / net / decnet / dn_route.c
index 743e9fc..5abf705 100644 (file)
@@ -55,6 +55,7 @@
     GNU General Public License for more details.
 *******************************************************************************/
 
+#include <linux/config.h>
 #include <linux/errno.h>
 #include <linux/types.h>
 #include <linux/socket.h>
@@ -925,13 +926,8 @@ static int dn_route_output_slow(struct dst_entry **pprt, const struct flowi *old
                for(dev_out = dev_base; dev_out; dev_out = dev_out->next) {
                        if (!dev_out->dn_ptr)
                                continue;
-                       if (!dn_dev_islocal(dev_out, oldflp->fld_src))
-                               continue;
-                       if ((dev_out->flags & IFF_LOOPBACK) &&
-                           oldflp->fld_dst &&
-                           !dn_dev_islocal(dev_out, oldflp->fld_dst))
-                               continue;
-                       break;
+                       if (dn_dev_islocal(dev_out, oldflp->fld_src))
+                               break;
                }
                read_unlock(&dev_base_lock);
                if (dev_out == NULL)