summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rarpd
diff options
context:
space:
mode:
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;