summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorMartin Natano <natano@cvs.openbsd.org>2016-05-08 08:20:51 +0000
committerMartin Natano <natano@cvs.openbsd.org>2016-05-08 08:20:51 +0000
commit4d92d01454e3d3b9e428fc050a828c0378602d97 (patch)
treef79c7293a796b0a3814dfffedfaaa7d472f6a4c2 /sbin
parentfead2df20b8d6568816fb3f3df28094070e6dff5 (diff)
Use /dev/bpf0 instead of /dev/bpf (without loop though), as suggested by
sthen@. to make remote upgrades without media less painful. ok tb@
Diffstat (limited to 'sbin')
-rw-r--r--sbin/dhclient/bpf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/dhclient/bpf.c b/sbin/dhclient/bpf.c
index 57f3a1be2e4..8185bd92a9d 100644
--- a/sbin/dhclient/bpf.c
+++ b/sbin/dhclient/bpf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bpf.c,v 1.39 2016/05/03 07:47:26 natano Exp $ */
+/* $OpenBSD: bpf.c,v 1.40 2016/05/08 08:20:50 natano Exp $ */
/* BPF socket interface code, originally contributed by Archie Cobbs. */
@@ -77,13 +77,13 @@ if_register_bpf(void)
struct ifreq ifr;
int sock;
- if ((sock = open("/dev/bpf", O_RDWR | O_CLOEXEC)) == -1)
+ if ((sock = open("/dev/bpf0", O_RDWR | O_CLOEXEC)) == -1)
error("Can't open bpf: %s", strerror(errno));
/* Set the BPF device to point at this interface. */
strlcpy(ifr.ifr_name, ifi->name, IFNAMSIZ);
if (ioctl(sock, BIOCSETIF, &ifr) < 0)
- error("Can't attach interface %s to /dev/bpf: %s",
+ error("Can't attach interface %s to /dev/bpf0: %s",
ifi->name, strerror(errno));
return (sock);