summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDaniel Hartmeier <dhartmei@cvs.openbsd.org>2004-11-18 23:14:50 +0000
committerDaniel Hartmeier <dhartmei@cvs.openbsd.org>2004-11-18 23:14:50 +0000
commit92b79ee99c02c692eb45d857cf1317305deee087 (patch)
tree53e7b195228ab6005f8ebbe5cefe06788d5a387f /sys
parentf37aa84798f6c24d5dfafdbd68d7599d8611bce8 (diff)
for loopback, set ia_dstaddr instead of ia_ifa.ifa_dstaddr in in_ifinit()
found by Ruslan Ermilov, ok markus@ http://marc.theaimsgroup.com/?l=freebsd-net&m=110072900204253
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/in.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/in.c b/sys/netinet/in.c
index 3c6310af2a1..34779753cf6 100644
--- a/sys/netinet/in.c
+++ b/sys/netinet/in.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: in.c,v 1.37 2004/08/24 20:31:16 brad Exp $ */
+/* $OpenBSD: in.c,v 1.38 2004/11/18 23:14:49 dhartmei Exp $ */
/* $NetBSD: in.c,v 1.26 1996/02/13 23:41:39 christos Exp $ */
/*
@@ -731,7 +731,7 @@ in_ifinit(ifp, ia, sin, scrub)
ia->ia_netbroadcast.s_addr =
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)