summaryrefslogtreecommitdiff
path: root/sys/netinet/in.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2014-11-05 14:40:52 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2014-11-05 14:40:52 +0000
commit94e124e24cabe3a742573124f6bbcf91526de006 (patch)
tree931aa9eed4ce784511be0b4db74d4daf8e76f092 /sys/netinet/in.c
parent32db2b79e19a46daa5d5d8e36be8dea6930a0cb2 (diff)
Did you ever wonder why loopback's ifas have a destination address?
It is of course not to make your life more complicated when you are dealing with ifa_ifwithaddr()! It was to reuse the point-to-point code to add a route to 127.0.0.1. But now we have local routes and we don't need this hack anymore :) ok mikeb@ as part of a larger diff.
Diffstat (limited to 'sys/netinet/in.c')
-rw-r--r--sys/netinet/in.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/netinet/in.c b/sys/netinet/in.c
index 992b39c605a..4b94c7d07ca 100644
--- a/sys/netinet/in.c
+++ b/sys/netinet/in.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: in.c,v 1.106 2014/10/07 08:47:28 mpi Exp $ */
+/* $OpenBSD: in.c,v 1.107 2014/11/05 14:40:51 mpi Exp $ */
/* $NetBSD: in.c,v 1.26 1996/02/13 23:41:39 christos Exp $ */
/*
@@ -664,8 +664,6 @@ in_ifinit(struct ifnet *ifp, struct in_ifaddr *ia, struct sockaddr_in *sin,
ia->ia_broadaddr.sin_addr.s_addr =
ia->ia_net | ~ia->ia_netmask;
}
- } else if (ifp->if_flags & IFF_LOOPBACK) {
- ia->ia_dstaddr = ia->ia_addr;
} else if (ifp->if_flags & IFF_POINTOPOINT) {
if (ia->ia_dstaddr.sin_family != AF_INET)
goto out;