patch-2.1.99 linux/net/ipv6/route.c
Next file: linux/net/ipv6/tcp_ipv6.c
Previous file: linux/net/ipv6/proc.c
Back to the patch index
Back to the overall index
- Lines: 31
- Date:
Tue Apr 28 11:10:11 1998
- Orig file:
v2.1.98/linux/net/ipv6/route.c
- Orig date:
Thu Mar 26 15:57:13 1998
diff -u --recursive --new-file v2.1.98/linux/net/ipv6/route.c linux/net/ipv6/route.c
@@ -5,7 +5,7 @@
* Authors:
* Pedro Roque <roque@di.fc.ul.pt>
*
- * $Id: route.c,v 1.27 1998/03/21 07:28:04 davem Exp $
+ * $Id: route.c,v 1.28 1998/04/28 06:22:04 davem Exp $
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -90,7 +90,11 @@
{{NULL, ATOMIC_INIT(1), ATOMIC_INIT(1), NULL,
-1, 0, 0, 0, 0, 0, 0, 0, 0,
-ENETUNREACH, NULL, NULL,
- ip6_pkt_discard, ip6_pkt_discard, &ip6_dst_ops}},
+ ip6_pkt_discard, ip6_pkt_discard,
+#ifdef CONFIG_NET_CLS_ROUTE
+ 0,
+#endif
+ &ip6_dst_ops}},
NULL, {{{0}}}, 256, RTF_REJECT|RTF_NONEXTHOP, ~0U,
255, 0, {NULL}, {{{{0}}}, 0}, {{{{0}}}, 0}
};
@@ -751,7 +755,7 @@
goto out;
}
- grt = rt6_lookup(gw_addr, NULL, dev->ifindex, RTF_LINKRT);
+ grt = rt6_lookup(gw_addr, NULL, rtmsg->rtmsg_ifindex, RTF_LINKRT);
if (grt == NULL || (grt->rt6i_flags&RTF_GATEWAY)) {
*err = -EHOSTUNREACH;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov