Date: Sun, 12 Sep 2010 18:04:47 +0000 (UTC) From: Qing Li <qingli@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r212502 - head/sys/netinet Message-ID: <201009121804.o8CI4lfN090857@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: qingli Date: Sun Sep 12 18:04:47 2010 New Revision: 212502 URL: http://svn.freebsd.org/changeset/base/212502 Log: Adding an address on an interface also requires the loopback route to that address be installed. PR: kern/150481 Submitted by: Ingo Flaschberger <if at xip.at> MFC after: 5 days Modified: head/sys/netinet/raw_ip.c Modified: head/sys/netinet/raw_ip.c ============================================================================== --- head/sys/netinet/raw_ip.c Sun Sep 12 17:55:56 2010 (r212501) +++ head/sys/netinet/raw_ip.c Sun Sep 12 18:04:47 2010 (r212502) @@ -741,6 +741,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?201009121804.o8CI4lfN090857>