svn commit: r220564 - stable/8/sys/netinet
Bjoern A. Zeeb
bz at FreeBSD.org
Tue Apr 12 11:17:47 UTC 2011
Author: bz
Date: Tue Apr 12 11:17:46 2011
New Revision: 220564
URL: http://svn.freebsd.org/changeset/base/220564
Log:
MFC r212502 (qingli):
Adding an address on an interface also requires the loopback route to
that address be installed.
Submitted by: Ingo Flaschberger <if at xip.at>
PR: kern/150481
Modified:
stable/8/sys/netinet/raw_ip.c
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/amd64/include/xen/ (props changed)
stable/8/sys/cddl/contrib/opensolaris/ (props changed)
stable/8/sys/contrib/dev/acpica/ (props changed)
stable/8/sys/contrib/pf/ (props changed)
Modified: stable/8/sys/netinet/raw_ip.c
==============================================================================
--- stable/8/sys/netinet/raw_ip.c Tue Apr 12 09:55:24 2011 (r220563)
+++ stable/8/sys/netinet/raw_ip.c Tue Apr 12 11:17:46 2011 (r220564)
@@ -755,6 +755,8 @@ rip_ctlinput(int cmd, struct sockaddr *s
if (err == 0)
ia->ia_flags |= IFA_ROUTE;
err = ifa_add_loopback_route((struct ifaddr *)ia, sa);
+ if (err == 0)
+ ia->ia_flags |= IFA_RTSELF;
ifa_free(&ia->ia_ifa);
break;
}
More information about the svn-src-all
mailing list