Re: [PATCHv2 1/2] util: allow sending mac addr to virNetNewLink without ifindex

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

 



On Thu, Oct 17, 2019 at 21:59:48 -0400, Laine Stump wrote:
> From: Laine Stump <laine@xxxxxxxxxx>
> 
> Although until now, any use of the extra_args argument (a pointer to a
> struct containing extra attributes to add the the RTM_NEWLINK message)
> would always have the ifindex and mac set, so the code could assume it
> was safe to add both to the message if extra_args != NULL. There is
> now a use for setting a MAC address in the RTM_NEWLINK without setting
> the ifindex, so we should check each of these separately.
> 
> Signed-off-by: Laine Stump <laine@xxxxxxxxxx>
> ---
>  src/util/virnetlink.c | 9 +++++++--
>  1 file changed, 7 insertions(+), 2 deletions(-)

Reviewed-by: Jiri Denemark <jdenemar@xxxxxxxxxx>

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

  Powered by Linux