mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-04 09:09:56 +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:
parent
12debc81fc
commit
a458eaa039
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=212502
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user