Re: [ 1/5] virnetdev allow to set peer address

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

 



On Mon, Apr 04, 2016 at 09:00:02PM +0000, Vasiliy Tolstov wrote:
> Signed-off-by: Vasiliy Tolstov <v.tolstov@xxxxxxxxx>
> ---
>  src/util/virnetdev.c | 54 ++++++++++++++++++++++++++++++++++++----------------
>  src/util/virnetdev.h |  1 +
>  2 files changed, 39 insertions(+), 16 deletions(-)

> diff --git a/src/util/virnetdev.h b/src/util/virnetdev.h
> index e7719d58a410..240fff774d30 100644
> --- a/src/util/virnetdev.h
> +++ b/src/util/virnetdev.h
> @@ -90,6 +90,7 @@ int virNetDevGetOnline(const char *ifname,
>  
>  int virNetDevSetIPAddress(const char *ifname,
>                            virSocketAddr *addr,
> +                          virSocketAddr *peer,
>                            unsigned int prefix)
>      ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_RETURN_CHECK;
>  int virNetDevAddRoute(const char *ifname,

Since you've added a new parameter to this method, this patch
ought to also add 'NULL' to each place in the code which
currently uses this API, otherwise the build breaks after
applying just this patch.

ACK, I'll fix that when pushing.


Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

--
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]