summaryrefslogtreecommitdiffstats
path: root/sys/netinet/in.c
diff options
context:
space:
mode:
authorpst <pst@FreeBSD.org>1995-04-26 18:10:58 +0000
committerpst <pst@FreeBSD.org>1995-04-26 18:10:58 +0000
commit321a03d090577e9d6eb90169b5ded161378501ea (patch)
tree1e8321bb9cb38240fa0ad1fef8d725457a725bb8 /sys/netinet/in.c
parenta153267748ead18b28287e3a1a46a720b15d4f8a (diff)
downloadFreeBSD-src-321a03d090577e9d6eb90169b5ded161378501ea.zip
FreeBSD-src-321a03d090577e9d6eb90169b5ded161378501ea.tar.gz
Cleanup loopback interface support.
Reviewed by: wollman
Diffstat (limited to 'sys/netinet/in.c')
-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 c90cc2c..230ff10 100644
--- a/sys/netinet/in.c
+++ b/sys/netinet/in.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)in.c 8.2 (Berkeley) 11/15/93
- * $Id: in.c,v 1.11 1995/03/23 18:14:40 wollman Exp $
+ * $Id: in.c,v 1.12 1995/04/25 19:50:20 wollman Exp $
*/
#include <sys/param.h>
@@ -259,7 +259,7 @@ in_control(so, cmd, data, ifp)
ia->ia_broadaddr.sin_family = AF_INET;
}
ia->ia_ifp = ifp;
- if (ifp != &loif)
+ if (!(ifp->if_flags & IFF_LOOPBACK))
in_interfaces++;
}
break;
OpenPOWER on IntegriCloud