summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rarpd
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 /usr.sbin/rarpd
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 'usr.sbin/rarpd')
-rw-r--r--usr.sbin/rarpd/rarpd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/rarpd/rarpd.c b/usr.sbin/rarpd/rarpd.c
index 81dcb1f4737..a2dc5d9c4a0 100644
--- a/usr.sbin/rarpd/rarpd.c
+++ b/usr.sbin/rarpd/rarpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rarpd.c,v 1.71 2017/01/20 06:22:38 krw Exp $ */
+/* $OpenBSD: rarpd.c,v 1.72 2017/04/19 05:36:13 natano Exp $ */
/* $NetBSD: rarpd.c,v 1.25 1998/04/23 02:48:33 mrg Exp $ */
/*
@@ -244,8 +244,8 @@ rarp_open(char *device)
struct ifreq ifr;
u_int dlt;
- if ((fd = open("/dev/bpf0", O_RDWR)) == -1)
- error("/dev/bpf0: %s", strerror(errno));
+ if ((fd = open("/dev/bpf", O_RDWR)) == -1)
+ error("/dev/bpf: %s", strerror(errno));
/* Set immediate mode so packets are processed as they arrive. */
immediate = 1;