Date: Tue, 12 Apr 2011 11:17:47 +0000 (UTC) From: "Bjoern A. Zeeb" <bz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r220564 - stable/8/sys/netinet Message-ID: <201104121117.p3CBHlbC022591@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201104121117.p3CBHlbC022591>