summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authorpst <pst@FreeBSD.org>1996-01-23 09:44:45 +0000
committerpst <pst@FreeBSD.org>1996-01-23 09:44:45 +0000
commit94aa183d802c5aabbb63d0191812b074f2ae32a1 (patch)
tree21d7f92b73d1a5ef6dacfde4c89c6a5c8cd9c45a /libexec
parentef1b06ef29a9a9c0bb6a584a377bf5f9124a1d25 (diff)
downloadFreeBSD-src-94aa183d802c5aabbb63d0191812b074f2ae32a1.zip
FreeBSD-src-94aa183d802c5aabbb63d0191812b074f2ae32a1.tar.gz
Fix getif() to work under 4.3bsd and later
Diffstat (limited to 'libexec')
-rw-r--r--libexec/bootpd/getif.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libexec/bootpd/getif.c b/libexec/bootpd/getif.c
index de9f96d..c9c08cd 100644
--- a/libexec/bootpd/getif.c
+++ b/libexec/bootpd/getif.c
@@ -91,13 +91,12 @@ getif(s, addrp)
maxmatch = m;
ifrmax = ifrq;
}
- /* XXX - Could this be just #ifndef IFNAMSIZ instead? -gwr */
-#if (BSD - 0) < 43
+#ifndef IFNAMSIZ
/* BSD not defined or earlier than 4.3 */
incr = sizeof(*ifrq);
-#else /* NetBSD */
+#else
incr = ifrq->ifr_addr.sa_len + IFNAMSIZ;
-#endif /* NetBSD */
+#endif
p += incr;
len -= incr;
OpenPOWER on IntegriCloud