cvs commit: src/sys/net route.c src/sys/netinet in.c in_rmx.c in_var.h raw_ip.c

[ Available lists | Index of cvs-all | Month of May 2001 | Week of 14 May 2001 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Ruslan Ermilov <ru@FreeBSD.org>
Date
14 May 2001 01:23:57
Subject
cvs commit: src/sys/net route.c src/sys/netinet in.c in_rmx.c in_var.h raw_ip.c
Message-ID
200105140823.f4E8NnL79490@freefall.freebsd.org


[ Hide this part ]
ru          2001/05/14 01:23:49 PDT

Modified files: (Branch: RELENG_4)
sys/net route.c
sys/netinet in.c in_rmx.c in_var.h raw_ip.c
Log:
MFC.

net/route.c:
A route generated from an RTF_CLONING route had the RTF_WASCLONED flag
set but did not have a reference to the parent route, as documented in
the rtentry(9) manpage. This prevented such routes from being deleted
when their parent route was deleted.

netinet/in.c:
When address is removed from an interface, also delete all routes that
point to this interface and address. Previously, for example, if you
changed the address on an interface, outgoing IP datagrams might still
use the old address. The only solution was to delete and re-add some
routes.

netinet/in_rmx.c, netinet/in_var.h, netinet/raw_ip.c:
In in_ifadown(), differentiate between whether the interface goes
down or interface address is deleted. Only delete static routes
in the latter case.

PR: kern/20785, bin/26970, i386/27280

Revision Changes Path
1.59.2.2 +5 -4 src/sys/net/route.c
1.44.2.3 +12 -1 src/sys/netinet/in.c
1.37.2.1 +14 -12 src/sys/netinet/in_rmx.c
1.33.2.1 +2 -2 src/sys/netinet/in_var.h
1.64.2.5 +2 -2 src/sys/netinet/raw_ip.c


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message



Elapsed time: 0.083 seconds