Re: [PATCH] BSD: implement virNetDev(Set|Clear)IPv4Address

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

 



  Laine Stump wrote:

> There is a potential problem here. When this function was renamed from
> brAddInetAddress(), it was incorrectly given the "IPv4" moniker. In
> fact, it is used to add either IPv4 or IPv6 addresses to the interface.
> In order for this to work correctly, you'll need to check the family of
> the virSocketAddr and use either "inet" or "inet6" accordingly.
> 
> 
> (and this function should really be renamed to virNetDevAddIPAddress,
> since it is v4 or v6, and multiple addresses can be added.
> virNetDevClearIPv4Address should similarly be changed to
> virNetDevDelIPAddress (or maybe they should be
> virNetDevIPAddress(Add|Del) ) (That's a separate issue, though).

Thanks for suggestion, I have added a check.

BTW, doc string for virNetDevSetIPv4Address() references brDelInetAddress() which
doesn't exist (I guess it's a leftover after rename as well).

Roman Bogorodskiy

Attachment: pgpNwctHOfoWZ.pgp
Description: PGP 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]