diff options
author | 2016-05-08 08:20:50 +0000 | |
---|---|---|
committer | 2016-05-08 08:20:50 +0000 | |
commit | 4f7cdb9ffce31c138f212cada794ec2b54119c15 (patch) | |
tree | c277340cea2156c593b275cef2986f3fa4fc81ff /sbin/dhclient/bpf.c | |
parent | spelling; (diff) | |
download | wireguard-openbsd-4f7cdb9ffce31c138f212cada794ec2b54119c15.tar.xz wireguard-openbsd-4f7cdb9ffce31c138f212cada794ec2b54119c15.zip |
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/dhclient/bpf.c')
-rw-r--r-- | sbin/dhclient/bpf.c | 6 |
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); |