summaryrefslogtreecommitdiff
path: root/common/bpf.c
diff options
context:
space:
mode:
authorTed Lemon <source@isc.org>1996-09-02 21:14:58 +0000
committerTed Lemon <source@isc.org>1996-09-02 21:14:58 +0000
commitc255efc9d0b311b6a0f31541a1f27f61f482ef1c (patch)
tree7113565d8c4c3fae040f82e377319e0713986cfd /common/bpf.c
parentdb5b9b27ab444206330cc167a995c2e6b23ad796 (diff)
downloadisc-dhcp-c255efc9d0b311b6a0f31541a1f27f61f482ef1c.tar.gz
Improve error messages
Diffstat (limited to 'common/bpf.c')
-rw-r--r--common/bpf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/common/bpf.c b/common/bpf.c
index bdcb4e24..1ef37958 100644
--- a/common/bpf.c
+++ b/common/bpf.c
@@ -42,7 +42,7 @@
#ifndef lint
static char copyright[] =
-"$Id: bpf.c,v 1.12 1996/08/27 09:38:33 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
+"$Id: bpf.c,v 1.13 1996/09/02 21:14:58 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
@@ -92,7 +92,8 @@ int if_register_bpf (info, ifp)
/* Set the BPF device to point at this interface. */
if (ioctl (sock, BIOCSETIF, ifp) < 0)
- error ("Can't attach interface to bpf device: %m");
+ error ("Can't attach interface %s to bpf device %s: %m",
+ info -> name, filename);
return sock;
}