1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-05 09:14:03 +00:00

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
This commit is contained in:
Qing Li 2010-09-12 18:04:47 +00:00
parent 12debc81fc
commit a458eaa039
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=212502

View File

@ -741,6 +741,8 @@ rip_ctlinput(int cmd, struct sockaddr *sa, void *vip)
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;
}