patch-1.3.68 linux/net/ipv4/route.c
Next file: linux/net/ipv4/tcp.c
Previous file: linux/net/ipv4/igmp.c
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Wed Feb 21 08:33:26 1996
- Orig file:
v1.3.67/linux/net/ipv4/route.c
- Orig date:
Sat Feb 17 16:02:58 1996
diff -u --recursive --new-file v1.3.67/linux/net/ipv4/route.c linux/net/ipv4/route.c
@@ -62,6 +62,7 @@
#include <linux/in.h>
#include <linux/inet.h>
#include <linux/netdevice.h>
+#include <linux/if_arp.h>
#include <net/ip.h>
#include <net/protocol.h>
#include <net/route.h>
@@ -557,9 +558,10 @@
{
/*
* Don't try to add a gateway we can't reach..
+ * Tunnel devices are exempt from this rule.
*/
- if (dev != get_gw_dev(gw))
+ if ((dev != get_gw_dev(gw)) && dev->type!=ARPHRD_TUNNEL)
return;
flags |= RTF_GATEWAY;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this