diff options
author | Peter Maydell | 2021-05-28 23:55:56 +0200 |
---|---|---|
committer | Peter Maydell | 2021-05-28 23:55:56 +0200 |
commit | a648df38898ddbad1bd6d71a6680b3788f6528b2 (patch) | |
tree | 690749f9f0534451b35ecd5707e3a09e8b4728b2 /net | |
parent | Merge remote-tracking branch 'remotes/rth-gitlab/tags/pull-tcg-20210526' into... (diff) | |
parent | tap-bsd: Remove special casing for older OpenBSD releases (diff) | |
download | qemu-a648df38898ddbad1bd6d71a6680b3788f6528b2.tar.gz qemu-a648df38898ddbad1bd6d71a6680b3788f6528b2.tar.xz qemu-a648df38898ddbad1bd6d71a6680b3788f6528b2.zip |
Merge remote-tracking branch 'remotes/jasowang/tags/net-pull-request' into staging
# gpg: Signature made Thu 27 May 2021 04:06:17 BST
# gpg: using RSA key EF04965B398D6211
# gpg: Good signature from "Jason Wang (Jason Wang on RedHat) <jasowang@redhat.com>" [marginal]
# gpg: WARNING: This key is not certified with sufficiently trusted signatures!
# gpg: It is not certain that the signature belongs to the owner.
# Primary key fingerprint: 215D 46F4 8246 689E C77F 3562 EF04 965B 398D 6211
* remotes/jasowang/tags/net-pull-request:
tap-bsd: Remove special casing for older OpenBSD releases
virtio-net: failover: add missing remove_migration_state_change_notifier()
hw/net/imx_fec: return 0xffff when accessing non-existing PHY
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/tap-bsd.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/net/tap-bsd.c b/net/tap-bsd.c index 77aaf674b1..59dfcdfae0 100644 --- a/net/tap-bsd.c +++ b/net/tap-bsd.c @@ -35,10 +35,6 @@ #include <net/if_tap.h> #endif -#if defined(__OpenBSD__) -#include <sys/param.h> -#endif - #ifndef __FreeBSD__ int tap_open(char *ifname, int ifname_size, int *vnet_hdr, int vnet_hdr_required, int mq_required, Error **errp) @@ -59,11 +55,7 @@ int tap_open(char *ifname, int ifname_size, int *vnet_hdr, if (*ifname) { snprintf(dname, sizeof dname, "/dev/%s", ifname); } else { -#if defined(__OpenBSD__) && OpenBSD < 201605 - snprintf(dname, sizeof dname, "/dev/tun%d", i); -#else snprintf(dname, sizeof dname, "/dev/tap%d", i); -#endif } TFR(fd = open(dname, O_RDWR)); if (fd >= 0) { |