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
commit2ed5602e5196c1762c193f0331a09ffa07c1c6de (patch)
tree7117af36f2535a688659d78318f520e69dba490c /contrib/isc-dhcp/common/bpf.c
parent2ddffe4aa071a1ad7bfa3edaa4c5be617e00d69c (diff)
parent017255e081bcbadf47f5affc7eea7c047e38a70f (diff)
downloadFreeBSD-src-2ed5602e5196c1762c193f0331a09ffa07c1c6de.zip
FreeBSD-src-2ed5602e5196c1762c193f0331a09ffa07c1c6de.tar.gz
This commit was generated by cvs2svn to compensate for changes in r109298,
which included commits to RCS files with non-trunk default branches.
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