tap-bsd: implement a FreeBSD only version of tap_open
commit8677de2b4d26f8878b7414d540a6b2e139bc4d91
authorRoger Pau Monne <roger.pau@citrix.com>
Fri, 23 May 2014 15:57:48 +0000 (23 17:57 +0200)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Fri, 1 Aug 2014 15:57:48 +0000 (1 15:57 +0000)
tree229a3b9bc597f12699aa329b938b20db1d030f1d
parent74bc41511af5c389cd9f37956bd6e7fd7de35c49
tap-bsd: implement a FreeBSD only version of tap_open

The current behaviour of tap_open for BSD systems differ greatly from
it's Linux counterpart. Since FreeBSD supports interface renaming and
tap device cloning by opening /dev/tap, implement a FreeBSD specific
version of tap_open that behaves like it's Linux counterpart.

This is specially important for toolstacks that use Qemu (like Xen
libxl), in order to have a unified behaviour across suported
platforms.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
net/tap-bsd.c