summaryrefslogtreecommitdiffstats
path: root/sbin/dhclient/bpf.c
diff options
context:
space:
mode:
authornatano <natano@openbsd.org>2017-04-19 05:36:12 +0000
committernatano <natano@openbsd.org>2017-04-19 05:36:12 +0000
commit7b08a90aae262418a4b5fe9eae6b24d21fd1dcd4 (patch)
tree188724e650bbfb6b5975903479b8a0e42be691c9 /sbin/dhclient/bpf.c
parentBump numbers for /usr/obj allocation with *big* compilers. (diff)
downloadwireguard-openbsd-7b08a90aae262418a4b5fe9eae6b24d21fd1dcd4.tar.xz
wireguard-openbsd-7b08a90aae262418a4b5fe9eae6b24d21fd1dcd4.zip
Switch base tools from /dev/bpf0 to /dev/bpf. Now that /dev/bpf has been
around for two releases, it should be safe to do so. ok bluhm deraadt sthen tb yasuoka
Diffstat (limited to 'sbin/dhclient/bpf.c')
-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 2e6978c48b8..bdf44d2e8e4 100644
--- a/sbin/dhclient/bpf.c
+++ b/sbin/dhclient/bpf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bpf.c,v 1.49 2017/04/18 13:59:09 krw Exp $ */
+/* $OpenBSD: bpf.c,v 1.50 2017/04/19 05:36:12 natano Exp $ */
/* BPF socket interface code, originally contributed by Archie Cobbs. */
@@ -78,13 +78,13 @@ if_register_bpf(struct interface_info *ifi)
struct ifreq ifr;
int sock;
- if ((sock = open("/dev/bpf0", O_RDWR | O_CLOEXEC)) == -1)
+ if ((sock = open("/dev/bpf", O_RDWR | O_CLOEXEC)) == -1)
fatal("Can't open bpf");
/* Set the BPF device to point at this interface. */
strlcpy(ifr.ifr_name, ifi->name, IFNAMSIZ);
if (ioctl(sock, BIOCSETIF, &ifr) < 0)
- fatal("Can't attach interface %s to /dev/bpf0", ifi->name);
+ fatal("Can't attach interface %s to /dev/bpf", ifi->name);
return (sock);
}