diff options
author | mlaier <mlaier@FreeBSD.org> | 2004-11-17 23:14:03 +0000 |
---|---|---|
committer | mlaier <mlaier@FreeBSD.org> | 2004-11-17 23:14:03 +0000 |
commit | 4603a76576ef4024ba3de832891d80d5ecef26a7 (patch) | |
tree | f3a1e000949d1d652055d81445716c27cd68d6a6 /sys/netinet/in.c | |
parent | 29914bf7438d9cb8cc167e0d86f15e0d61635b26 (diff) | |
download | FreeBSD-src-4603a76576ef4024ba3de832891d80d5ecef26a7.zip FreeBSD-src-4603a76576ef4024ba3de832891d80d5ecef26a7.tar.gz |
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
Diffstat (limited to 'sys/netinet/in.c')
-rw-r--r-- | sys/netinet/in.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/in.c b/sys/netinet/in.c index 26212fa..a015afd 100644 --- a/sys/netinet/in.c +++ b/sys/netinet/in.c @@ -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) |