mirror of
https://github.com/opnsense/src.git
synced 2026-05-04 17:05:14 -04:00
Fix host route addition for more than one address to a loopback interface
after allowing more than one address with the same prefix. Reported by: Vladimir Grebenschikov <vova NO fbsd SPAM ru> Submitted by: ru (also NetBSD rev. 1.83) Pointyhat to: mlaier
This commit is contained in:
parent
58de2240ec
commit
9a6a6eeba2
1 changed files with 1 additions and 1 deletions
|
|
@ -732,7 +732,7 @@ in_ifinit(ifp, ia, sin, scrub)
|
|||
ia->ia_netbroadcast.s_addr =
|
||||
htonl(ia->ia_net | ~ ia->ia_netmask);
|
||||
} else if (ifp->if_flags & IFF_LOOPBACK) {
|
||||
ia->ia_ifa.ifa_dstaddr = ia->ia_ifa.ifa_addr;
|
||||
ia->ia_dstaddr = ia->ia_addr;
|
||||
flags |= RTF_HOST;
|
||||
} else if (ifp->if_flags & IFF_POINTOPOINT) {
|
||||
if (ia->ia_dstaddr.sin_family != AF_INET)
|
||||
|
|
|
|||
Loading…
Reference in a new issue