summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-07-19 07:52:17 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-07-19 07:52:17 +0000
commite02c61ebe77549d08b25831f585e05ef353d0e6d (patch)
tree78fe13b9e4d0c0bc573d241948d3924bc24579c0
parentdfe25bb5199e89d353ff6c9473484bc98494a412 (diff)
eschew use of HAVE_SOCKADDR_SA_LEN for now
-rw-r--r--lib/libpcap/inet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libpcap/inet.c b/lib/libpcap/inet.c
index fb0cb362d77..fd066d1463d 100644
--- a/lib/libpcap/inet.c
+++ b/lib/libpcap/inet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: inet.c,v 1.4 1996/07/12 13:19:09 mickey Exp $ */
+/* $OpenBSD: inet.c,v 1.5 1996/07/19 07:52:16 deraadt Exp $ */
/*
* Copyright (c) 1994, 1995, 1996
@@ -112,7 +112,7 @@ pcap_lookupdev(errbuf)
mp = NULL;
minunit = 666;
for (; ifrp < ifend; ifrp = ifnext) {
-#ifdef HAVE_SOCKADDR_SA_LEN
+#if BSD - 0 >= 199006
n = ifrp->ifr_addr.sa_len + sizeof(ifrp->ifr_name);
if (n < sizeof(*ifrp))
ifnext = ifrp + 1;