summaryrefslogtreecommitdiff
path: root/usr.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 /usr.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 'usr.sbin')
-rw-r--r--usr.sbin/tcpdump/privsep_pcap.c4
-rw-r--r--usr.sbin/tcpdump/tcpdump.86
2 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/tcpdump/privsep_pcap.c b/usr.sbin/tcpdump/privsep_pcap.c
index 1ca6c7fb3ff..70d9f7d6fe6 100644
--- a/usr.sbin/tcpdump/privsep_pcap.c
+++ b/usr.sbin/tcpdump/privsep_pcap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: privsep_pcap.c,v 1.20 2016/05/03 07:41:24 natano Exp $ */
+/* $OpenBSD: privsep_pcap.c,v 1.21 2016/05/08 08:20:50 natano Exp $ */
/*
* Copyright (c) 2004 Can Erkin Acar
@@ -182,7 +182,7 @@ pcap_live(const char *device, int snaplen, int promisc, u_int dlt,
if (device == NULL || snaplen <= 0)
return (-1);
- if ((fd = open("/dev/bpf", O_RDONLY)) == -1)
+ if ((fd = open("/dev/bpf0", O_RDONLY)) == -1)
return (-1);
v = 32768; /* XXX this should be a user-accessible hook */
diff --git a/usr.sbin/tcpdump/tcpdump.8 b/usr.sbin/tcpdump/tcpdump.8
index 5bfe8a429f3..c8b3de13b46 100644
--- a/usr.sbin/tcpdump/tcpdump.8
+++ b/usr.sbin/tcpdump/tcpdump.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: tcpdump.8,v 1.90 2016/05/03 07:41:24 natano Exp $
+.\" $OpenBSD: tcpdump.8,v 1.91 2016/05/08 08:20:50 natano Exp $
.\"
.\" Copyright (c) 1987, 1988, 1989, 1990, 1991, 1992, 1994, 1995, 1996
.\" The Regents of the University of California. All rights reserved.
@@ -19,7 +19,7 @@
.\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
.\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
.\"
-.Dd $Mdocdate: May 3 2016 $
+.Dd $Mdocdate: May 8 2016 $
.Dt TCPDUMP 8
.Os
.Sh NAME
@@ -44,7 +44,7 @@
prints out the headers of packets on a network interface that match the boolean
.Ar expression .
You must have read access to
-.Pa /dev/bpf .
+.Pa /dev/bpf0 .
.Pp
The options are as follows:
.Bl -tag -width "-c count"