]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Add an error message for missing bpf device.
authorTed Lemon <source@isc.org>
Tue, 9 Feb 1999 04:46:59 +0000 (04:46 +0000)
committerTed Lemon <source@isc.org>
Tue, 9 Feb 1999 04:46:59 +0000 (04:46 +0000)
common/bpf.c

index c16b4fb30418bbb871790181323942707c696135..ba42a43903cd284806be5f280c5012e273896d74 100644 (file)
@@ -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 {