Re: [PATCH v3 1/2] Move virBhyveTapGetRealDeviceName to virnetdevtap

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 03/26/2014 05:53 PM, Roman Bogorodskiy wrote:
> To ease mocking for bhyve unit tests move virBhyveTapGetRealDeviceName()
> out of bhyve_command.c to virnetdevtap and rename it to
> virNetDevTapGetRealDeviceName().
> ---
>  src/bhyve/bhyve_command.c | 74 +---------------------------------------
>  src/libvirt_private.syms  |  1 +
>  src/util/virnetdevtap.c   | 87 +++++++++++++++++++++++++++++++++++++++++++++++
>  src/util/virnetdevtap.h   |  3 ++
>  4 files changed, 92 insertions(+), 73 deletions(-)
> 

> diff --git a/src/util/virnetdevtap.c b/src/util/virnetdevtap.c
> index 32ad406..3072146 100644
> --- a/src/util/virnetdevtap.c
> +++ b/src/util/virnetdevtap.c
> @@ -22,6 +22,9 @@
>  
>  #include <config.h>
>  
> +#include <sys/types.h>
> +#include <dirent.h>
> +

I'd rather group these together with the other system headers below, but
that's not really an issue.

>  #include "virmacaddr.h"
>  #include "virnetdevtap.h"
>  #include "virnetdev.h"
> @@ -38,8 +41,11 @@
>  #include <fcntl.h>
>  #ifdef __linux__
>  # include <linux/if_tun.h>    /* IFF_TUN, IFF_NO_PI */
> +#elif defined(__FreeBSD__)
> +# include <net/if_tap.h>
>  #endif
>  
> +

Spurious blank line addition.

>  #define VIR_FROM_THIS VIR_FROM_NONE
>  
>  VIR_LOG_INIT("util.netdevtap");

ACK

Jan

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]