From: Ted Lemon Date: Tue, 9 Feb 1999 04:46:59 +0000 (+0000) Subject: Add an error message for missing bpf device. X-Git-Tag: V2-BETA-1-PATCH-11~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f637f67ba37c6596cbecb4cfb58d0ac320c9090b;p=thirdparty%2Fdhcp.git Add an error message for missing bpf device. --- diff --git a/common/bpf.c b/common/bpf.c index c16b4fb30..ba42a4390 100644 --- a/common/bpf.c +++ b/common/bpf.c @@ -42,7 +42,7 @@ #ifndef lint static char copyright[] = -"$Id: bpf.c,v 1.19.2.5 1999/02/04 22:10:09 mellon Exp $ Copyright (c) 1995, 1996, 1998, 1999 The Internet Software Consortium. All rights reserved.\n"; +"$Id: bpf.c,v 1.19.2.6 1999/02/09 04:46:59 mellon Exp $ Copyright (c) 1995, 1996, 1998, 1999 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -109,6 +109,11 @@ int if_register_bpf (info) if (errno == EBUSY) { continue; } else { + if (!b) + error ("No bpf devices.%s%s%s", + " Please read the README", + " section for your operating", + " system."); error ("Can't find free bpf: %m"); } } else {