summaryrefslogtreecommitdiffstats
path: root/contrib/isc-dhcp/common/bpf.c
diff options
context:
space:
mode:
authormurray <murray@FreeBSD.org>2003-01-15 10:31:26 +0000
committermurray <murray@FreeBSD.org>2003-01-15 10:31:26 +0000
commit017255e081bcbadf47f5affc7eea7c047e38a70f (patch)
treecf39c38365a0b53bd8bc09fd59f38b2eee8a01cf /contrib/isc-dhcp/common/bpf.c
parenta0b500f866e54d9ce8def00d72daac852505461e (diff)
downloadFreeBSD-src-017255e081bcbadf47f5affc7eea7c047e38a70f.zip
FreeBSD-src-017255e081bcbadf47f5affc7eea7c047e38a70f.tar.gz
Import ISC DHCP 3.0.1 RC10 client.
Diffstat (limited to 'contrib/isc-dhcp/common/bpf.c')
-rw-r--r--contrib/isc-dhcp/common/bpf.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/contrib/isc-dhcp/common/bpf.c b/contrib/isc-dhcp/common/bpf.c
index 6ca91bb..c59c571 100644
--- a/contrib/isc-dhcp/common/bpf.c
+++ b/contrib/isc-dhcp/common/bpf.c
@@ -47,7 +47,7 @@
#ifndef lint
static char copyright[] =
-"$Id: bpf.c,v 1.48.2.1 2002/04/30 05:12:53 murray Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n";
+"$Id: bpf.c,v 1.48.2.2 2002/06/08 09:29:16 murray Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
@@ -423,7 +423,11 @@ ssize_t receive_packet (interface, buf, len, from, hfrom)
interface -> rbuf,
(size_t)interface -> rbuf_max);
if (length <= 0) {
+#ifdef __FreeBSD__
+ if (errno == ENXIO) {
+#else
if (errno == EIO) {
+#endif
dhcp_interface_remove
((omapi_object_t *)interface,
(omapi_object_t *)0);
OpenPOWER on IntegriCloud