patch-2.1.106 linux/net/ipv4/route.c
Next file: linux/net/ipv4/syncookies.c
Previous file: linux/net/ipv4/ipconfig.c
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Thu Jun 11 22:52:35 1998
- Orig file:
v2.1.105/linux/net/ipv4/route.c
- Orig date:
Thu May 14 19:47:44 1998
diff -u --recursive --new-file v2.1.105/linux/net/ipv4/route.c linux/net/ipv4/route.c
@@ -5,7 +5,7 @@
*
* ROUTE - implementation of the IP router.
*
- * Version: $Id: route.c,v 1.50 1998/05/13 06:23:25 davem Exp $
+ * Version: $Id: route.c,v 1.52 1998/06/11 03:15:47 davem Exp $
*
* Authors: Ross Biro, <bir7@leland.Stanford.Edu>
* Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
@@ -1095,11 +1095,12 @@
rth->rt_gateway = daddr;
rth->rt_spec_dst= spec_dst;
rth->u.dst.input= ip_local_deliver;
+ rth->rt_flags = flags|RTCF_LOCAL;
if (res.type == RTN_UNREACHABLE) {
rth->u.dst.input= ip_error;
- rth->u.dst.error= err;
+ rth->u.dst.error= -err;
+ rth->rt_flags &= ~RTCF_LOCAL;
}
- rth->rt_flags = flags|RTCF_LOCAL;
rth->rt_type = res.type;
skb->dst = (struct dst_entry*)rt_intern_hash(hash, rth);
return 0;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov